Published on 2008-02-08 22:08:54
Once configured you can access your models in your code using MQL, based on SQL it's very simple, for example to access the 'users' model that is on the 'simplicity' connection you would use:
select simplicity.users
You can also use where, order and limit in your queries as follows:
select simplicity.users where id = '1'
select simplicity.users where name like "jo%" order by name
select simplicity.users where id > 10 limit 100
You can use MQL to access any models regardless of their source, RDBMS, CSV, PHP Array etc.
The next major development has been the caching backend. This automatically selects either APC, XCache or a locking file based caching backend depending on what is available, and this is used to cache very aggressively across the site, almost all information required between requests is cached to provide fantastic response times for AJAX applications.
Data models also use the caching extensively, using 'fine grained' caching which ensures that by caching as much data as possible but breaking it down to the smallest chunks possible, you are able to keep the cache from going stale and keep hit rates as high as possible. This is all handled almost entirely in the background by the Model.
There is a built in extensive error handling, and some integration with the XDebug extension, currently quite basic but with much more planned in this area.

Last but by no means least is the Admin console. Fully AJAX, built using Ext JS you are currently able to manage all configuration and data connections, create models and set-up relationships between them. This is only the beginning of the admin console and there is much more to come here.
There is a lot in this release and you can read more about Simplicity PHP Framework at http://www.simplicityphp.com. Download also available under GNU GPL V3 license and demo at http://demo.simplicityphp.com.Previous Page
Related Entries
Member of the PHP Magazine Network, Copyright (C) 2005-2008 phpmagazine.net All Rights Reserved