Happy Holiday yule cake - CakePHP 2.0-dev released

by markstory
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 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

Report

More on News

Advertising

Comments

  • posted on 02/07/11 09:48:08 PM
    When I visit my Cakephp-Site I get this error

    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?
    • rethab posted on 02/13/11 08:07:45 PM
      [quote] When I visit my Cakephp-Site I get this error

      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.
  • chiryphp posted on 01/08/11 01:52:04 AM
    Cake is NOT able to connect to the database." in CakePHP 2.0 when I run web.
    http://www.phpkode.com/projects/item/cakephp/
  • zaptree posted on 01/06/11 11:14:19 AM
    Im so glad 2.0 is out, a great gift for the new year :D
  • Flaviy posted on 01/06/11 07:08:08 AM
    Can't wait the stable version.
  • mr_ice posted on 01/03/11 06:33:27 PM
    At line 148: $flags[PDO::MYSQL_ATTR_INIT_COMMAND] = 'SET NAMES ' . $config['encoding'];

    in my database.php encoding is set to utf8.
    • mr_ice posted on 01/08/11 05:33:04 PM
      [quote] At line 148: $flags[PDO::MYSQL_ATTR_INIT_COMMAND] = 'SET NAMES ' . $config['encoding'];

      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.
    • mr_ice posted on 01/08/11 05:32:35 PM
      [quote] At line 148: $flags[PDO::MYSQL_ATTR_INIT_COMMAND] = 'SET NAMES ' . $config['encoding'];

      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.
  • mr_ice posted on 01/03/11 06:31:26 PM
    When cakephp try to connect to database, I get this error message

    "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
    • beBibietyeu posted on 01/03/11 08:46:06 PM
      You must install PDO as CakePHP 2.0 use it to connect to DB.

      If you use Unix, add this to compile command: --with-pdo-mysql
  • mr_ice posted on 01/03/11 02:00:26 PM
    After I renamed database.php.default to database.php all css and styles is gone.
    It is only a white background with Text in black color and the font looks like Times.
  • mr_ice posted on 01/03/11 07:22:38 AM
    When I visit my cakephp 2.0 folder I get this error

    "Fatal error: Class 'Debugger' not found in C:\wamp\www\test\cakephp-2.0\cake\libs\view\pages\home.ctp on line 26"
  • lorenzo posted on 12/29/10 12:06:29 PM
    The Ajax helper was deprecated in 1.3, and as replacement the Js helper was introduced. It allows you to do the same things the Ajax helper allowed you to do, but you can plug any javascript framework you like.

    http://book.cakephp.org/view/1593/Methods
    • celsowm posted on 12/29/10 12:53:51 PM
      [quote] The Ajax helper was deprecated in 1.3, and as replacement the Js helper was introduced. It allows you to do the same things the Ajax helper allowed you to do, but you can plug any javascript framework you like.

      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() ?
      • lorenzo posted on 12/29/10 09:31:09 PM
        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.
        • celsowm posted on 01/18/11 10:03:13 AM
          Autocomplete in Jquery is easy, but how make a generic autocomplete in JsHelper?

          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]
  • celsowm posted on 12/29/10 11:10:48 AM
    Where are the Ajax methods ??? autocomplete()...ajaxpaginator()... we need implement "in hand" all of them ?

    i dont believe, the best helpers utilities was removed from CakePHP, is a fall back...
  • silencedogood posted on 12/29/10 04:20:16 AM
    Fatal error: Class 'Debugger' not found in /xxx/cake/libs/view/pages/home.ctp on line 26

    Adding the following line anywhere before line 26 will fix it:
    App::import('Core', 'Debugger');

    Can't wait to give 2.0 a spin!
  • beBibietyeu posted on 12/28/10 07:40:02 PM
    "Cake is NOT able to connect to the database." in CakePHP 2.0 when I run web.

    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.
  • ProFire posted on 12/28/10 05:56:55 PM
    Wow! I looked through all the backwards incompatibility and I had a sigh.
    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!!!
  • jollyWind posted on 12/28/10 04:00:26 PM
    I hope it won't take too long to bake a stable release
  • klevo posted on 12/27/10 03:23:46 AM
    Can't wait to dig into 2.0. New features sound yummy. I've said that before but I say it again: CakePHP saved PHP world from boredom and slow death :)
login to post a comment.