CakePHP karkaso ateitis trumpai

cake-php-logo

Ne per seniausiai užmačiau, kad jau išleistas viešai cake3 source’as. Kuriamas naujausios PHP v5.3 pagrindu.  Iš trumpo aprašymo matyt kad bus praktiškai iš esmės perrašytas karkasas.

Bet anksčiau sulauksim CakePHP2, nuo šios versijos jau bus atsisakytas PHP4 palaikymas. Pagrindiniai uždaviniai:

  • PHP 5/6 only support
  • Change Model::tableId to Model::primaryKey
  • Fix Bake and ACL CLI scripts, and let’s not forget to generate unit test files this time, too
  • Inflector: support for custom rules
  • Allow Cake apps to be independent of the Cake install directory
  • Degradable Ajax, with support for Bookmarking and the Back button
  • Planned ACL updates
  • datasource: http://www.w3.org/TR/wsdl
  • Add a PDO driver
  • Change Models to return object instances instead of arrays
  • Validation class, with auto length and type based on db field
  • Enable field whitelist for Model::save( ) – http://groups.google.com/group/cake-php/browse_thread/thread/3ce2bc624d335b9/9ae1f14d5b74cce8?q=&rnum=6#9ae1f14d5b74cce8
  • Session flashing needs some help, maybe the ability to specify layouts/parameters?
  • Consider auto-generating hasMany and belongsTo relationships by comparing foreign keys to loaded models. This might also be the place to implement something db-specific, like reading InnoDB relationships.
  • Query caching
  • Change Component to a base class instead of a loader/singleton, and have components extend Component.
  • Make Router a singleton
  • Write an LDAP DataSource, and an ACL interface to it
  • Create a formalized way to extend Cake at the bootstrap level, and a basics function for loading these extensions (Extensions?)
  • Rewrite NeatArray and NeatString as Array and String, and actually add some handy methods/make it possible to call some stuff statically
  • Enable global loading of JavaScript libraries in /cake_core/vendors/js
  • Correct 2 files from Changeset [2643] (cake/config/tags.ini.php and cake/libs/view/helpers/html.php)

Žinoma, bus dar ir CakePHP v1.3, tačiau kiek teko girdėti, kažkokių kardinalių pakeitimų nebus. Tiesiog esamos 1.2 tobulinimas.

Data 2009.07.14

2 Responses to “CakePHP karkaso ateitis trumpai”

  1. dezpo says:

    Kazkaip su Cake gan viskas letai vyksta, atsimenu pries metus konferencijoje snekejo jau apie sitas v2 ir v3 versijas nors tada dar nebuvo net 1.2 final. Beje ja ir kure kazkur 2 metus. Tai tokiu atveju iki cake2 dar pora metu ir cake3 gal jau net ant PHP7 :)

  2. Mindaugas says:

    Galbūt pagrindinė to priežastis – lygiagretus kūrimas. Visos versijos (v1.3, v2, v3) kuriamos vienu metu iš karto. Aišku, prioritetas visad būna sekančiai. Nors iš kitos pusės, tai turi daug pliusų taip pat.

Leave a Reply