Happy Holiday yule cake - CakePHP 2.0-dev released
The CakePHP core team is proud to announce the immediate availability of CakePHP 2.0.0-dev. This is the first packaged release of the 2.x branch. The 2.0.0-dev release contains a number of backwards incompatible changes, and new features , and is not yet ready for production use. The biggest backwards incompatible change is that CakePHP 2.0.x will require at least PHP 5.2.6. There will be no support for PHP4 or PHP5 < 5.2.6.
New features
This is by no means an exhaustive list of new features in CakePHP 2.0, but some of the highlights so far include:
- PHPUnit as a test framework. PHPUnit is the de-facto standard for unit testing, and CakePHP is part of that. There are a number backwards compatible additions to help you update your tests easier.
- Separate Request and Response objects - Giving you easier access to information you need, and making testing easier.
- Lazy loading model associations - Associated models are loaded on-demand greatly improving the memory use and performance of larger applications.
- Lazy loading of Helpers and Components - Helpers and components are loaded/constructed as needed helping performance.
- New console framework - The console framework has been re-worked to provide a more flexible, powerful and colourful console.
- Exceptions and Errors - CakePHP uses exceptions internally and provides developers with a more extensible and configurable way to handle errors and exceptions in their applications.
You can find out more about all the features in CakePHP 2.0 in the new features wiki pages[1]. As previously mentioned, there are a number of backwards incompatible changes in CakePHP 2.0, and the core team has been documenting them all in the 2.0 migration guide[2].
If you are interested in helping with the on-going development of CakePHP 2.0, there are a number of ways you can help. You can give the code a try, and open tickets/provide test cases + patches for issues you find. You can help close the existing open un-assigned tickets [3] by creating patches and test cases for them. You can also give input on the many RFC and Enhancement tickets in lighthouse.
I'd like to thank everyone in the CakePHP community for a fantastic year. Looking back, 2010 was an impressive year. We saw the release of CakePHP 1.3.0 and a total of 10 release over the year. There was an amazing conference in Chicago, 1000's of documentation edits, countless blog posts, including an advent calendar from the japanese community[4]. On top of all that great stuff, we also had the re-release of the bakery and the launch of http://tv.cakephp.org/ . A great year, and it wouldn't be possible without the fantastic community that CakePHP has. So to everyone who helped make this year fantastic, thank you.
- Download a packaged release [5]
- View the changelog [6]
Links
- [1] http://cakephp.lighthouseapp.com/projects/42648/20-new-features
- [2] http://cakephp.lighthouseapp.com/projects/42648/2-0-migration-guide
- [3] http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/bins/228812
- [4] http://cakephp.jp/modules/newbb/viewtopic.php?viewmode=flat&topic_id=2510&forum=16
- [5] http://github.com/cakephp/cakephp/downloads
- [6] http://cakephp.org/changelogs/2.0.0-dev

Fatal error: Class 'Debugger' not found in /var/www/cake_1_2/cake/libs/view/pages/home.ctp on line 26
What can i do?
Fatal error: Class 'Debugger' not found in /var/www/cake_1_2/cake/libs/view/pages/home.ctp on line 26
What can i do?
[end quote] I added 'App::import('Core', 'Debugger');' to the Bootstrap.php. However, I don't actually believe that this is a good solution. Anyways, I'm just playing around with the -dev version.
http://www.phpkode.com/projects/item/cakephp/
in my database.php encoding is set to utf8.
in my database.php encoding is set to utf8.
[end quote]
My little problem I had with the encoding is solved.
I installed the latest version of PHP. I had 5.3.0 and installed 5.3.5
Now everything is working. I found out, that it is a bug in PHP.
in my database.php encoding is set to utf8.
[end quote]
My little problem I had with the encoding is solved.
I installed the latest version of PHP. I had 5.3.0 and installed 5.3.5
Now everything is working. I found out, that it is a bug in PHP.
"Fatal error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in cake\libs\model\datasources\dbo\dbo_mysql.php on line 148"
At line 148: MYSQL_ATTR_USE_BUFFERED_QUERY = false
If you use Unix, add this to compile command: --with-pdo-mysql
It is only a white background with Text in black color and the font looks like Times.
"Fatal error: Class 'Debugger' not found in C:\wamp\www\test\cakephp-2.0\cake\libs\view\pages\home.ctp on line 26"
http://book.cakephp.org/view/1593/Methods
http://book.cakephp.org/view/1593/Methods [end quote]
I dont understand why the ajaxHelper "prototype+scripatculous only" was not replaced by a new ajaxHelper based in JsHelper... Cake is not a rapid dev framework? How many lines is necessary to make a simple observerField() or autocomplete() ?
It should be that easy. Ah, I think you could even copy the Javascript helper into you application folder.
Btw, using jquery an autocomplete would be just one line.
And why sortable(), drag() and drop() were maintained and another methods not?
[quote] I you like a lot the AjaxHelper nothing is stoping you from copying it into your new cakephp application, just change the internal calls to the Javascript helper so it uses the Html helper.
It should be that easy. Ah, I think you could even copy the Javascript helper into you application folder.
Btw, using jquery an autocomplete would be just one line.
[end quote]
i dont believe, the best helpers utilities was removed from CakePHP, is a fall back...
Adding the following line anywhere before line 26 will fix it:
App::import('Core', 'Debugger');
Can't wait to give 2.0 a spin!
I configured my database like 1.3.6, but 2.0 is error :(
is there anyone helps me configure phpunit in 2.0, please? I put phpunit code folder to vendors and it has errors.
Its gonna be a pain to port all of my apps to the new version.
But I'm excited about the new features CakePHP has.
2011 is gonna be the year of CakePHP!!!