We are excited to announce RC4, the latest, greatest version of CakePHP.
With more and more people using Cake, we are able to track down more bugs
and even sneak in some feature modifications. The upgrade process should be
quick and painless, assuming you are running RC3. If you have not been
keeping up to date now is a great time to make the effort. The associations
are really smooth and always better when you use the array based setup. Even
recursive is going deeper with hasMany associations. We also added "prefix"
to the database config file so that you can define table prefixes for the
whole application. Remember that with a table prefix your foreign key should
reflect the prefix or you should use the array based setup to define the
foreign key naming.
Among the many fixes, was one major feature that we have been meaning to
implement. Remember the plugins directory? Wondering what it is used for?
Well, the answers are here.
Plugins are mini apps that have controllers, models, and views. The plugins
can have their own AppController and AppModel, but they must be prefixed
with the plugin name. So, lets say we have a blog with a custom
AppController and AppModel. The name of my blog plugin happens to be
CakeBlog. So, I have a cake_blog_app_controller.php and a
cake_blog_app_model.php, inside of the cake_blog directory which I place in
/app/plugins. I set the "prefix" in app/config/database.php to use cake_blog
and created the plugins tables. Then I goto
http://example.com/cake_blog/and voila a working blog. To make your
app work as a plugin you need to make
sure you extend the correct classes. All of the controllers and models
extend the CakeBlogAppController and CakeBlogAppModel. Now if you want to
override the views of the cake_blog plugin you can put those in your
app/views . The other catch is that while layouts are available in the
individual plugins, the css and images must be in the webroot. We recommend
building your plugins with var $useDbConfig = 'pluginname'; in the
PluginNameAppModel. Then you would add a var $pluginname; setting to your
app/config/database.php. Makes sense, doesn't it.
With RC4 we can expect a stable .10 version of CakePHP very soon. We are
really looking forward to that day. Being this close is a nice feeling, but
once the day arrives it will be huge. CakePHP is really growing well. There
are more community members everyday, contributing help, ideas, snippets and
apps among other things and we know there are even more coming. Its the
community that keeps us going, so if you are having fun with CakePHP and
want to see it get even better http://cakefoundation.org/pages/contribute
Also, check out http://cafepress.com/cakefoundation to get some good looking
Cake Shwag.
0.10.7.1856 RC3:
Download:
https://cakeforge.org/frs/?group_id=23&release_id=52
Changelog and Notes:
https://cakeforge.org/frs/shownotes.php?release_id=52
Cake Software Foundation, Inc.
--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/