Bei der Gruppe, für die Sie eine Mitteilung verfassen, handelt es sich um eine Usenet-Gruppe. Wenn Sie in dieser Gruppe Nachrichten posten, ist Ihre E-Mail-Adresse für jeden im Internet sichtbar
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.
> On 2/3/06, Larry E. Masters aka PhpNut <php...@gmail.com> wrote: > > We are excited to announce RC4, the latest, greatest version of CakePHP. > [...]
> Thanks for this ! :-)
> But with clean rc4 install, I get an error :
> /* begin error */ > Missing Model
> No class found for the model page
> Notice: this error is being rendered by the > app/views/errors/missing_model.thtml view file, a user-customizable > error page. > /* end error */