Re: CakePHP 3.0.0 development preview 2 released

2014-04-16 Thread steven lee
who can send me some video about cakephp?

On Thursday, March 13, 2014 5:35:36 AM UTC+8, José Lorenzo wrote:

 The CakePHP core team is excited to announce the second development 
 preview of CakePHP 3.0.0[1]. In the few months since 3.0.0-dev1, we've been 
 hard at work incorporating community feedback on the ORM, and building out 
 some of the functionality that was missing in the first development preview.

 http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#new-features-in-300-dev2New
  
 features in 3.0.0-dev2

- CakePHP has adopted the PSR-4 autoloader standard. If you are 
updating, make sure you update composer as well using
composer self-update .
- The directory structure of both CakePHP and the App skeleton has 
been simplified a bit thanks to PSR-4.
- The AclComponent has been removed - It will be returning as a plugin.
- The TestShell, and webrunner have been removed in favor of only 
supporting phpunit from the CLI, and VisualPHPUnit.
- View templates have been moved from View/ to Template/. This was 
done so the View/ directory would only contain view classes and helpers.
- The HtmlHelper, FormHelper, and SessionHelper use string templates 
consistently.
- ID attributes are now always generated with - instead of CamelCase. 
This was done to standardize on one convention for CSS selectors.
- API documentation and the cookbook have had many new sections and 
improvements.
- Scaffold has been removed. Improved dynamic scaffolding is now 
available through the CRUD plugin[2] which is already compatible with 3.0 
and takes away much of the repetitive tasks done in controllers.
- The UpgradeShell has been moved into a separate plugin.
- Better debugging output for some complex objects like Entities, 
Tables and Queries. Also added a special method to control what data is 
outputed for objects when using the debug() function
- Added Collection::insert()


 http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#formhelper
 FormHelper

 FormHelper has been re-built from the ground up. It features a new 
 extensible widget system. Form widgets allow you to build self contained 
 input widgets. This makes it easy to define complex widgets like the 
 datetime widget in application or plugin code. Once created, widgets can be 
 combined with other FormHelper features like input() .

 FormHelper also works with the new ORM now. You can create forms for 
 individual entities, or collections of entities:


 // Create a form for a single entity  its associations
 echo $this-Form-create($article);

 // Create a form for multiple entities  their associations.
 echo $this-Form-create($articles);

 FormHelper also features a pluggable context system that allows you to 
 integrate FormHelper with any ORM you may wish to use.

 http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#translatebehavior
 TranslateBehavior

 TranslateBehavior has been re-built from the ground up. It features the 
 long awaited ability to translate *all* models including associations 
 from a find(). The new TranslateTrait makes dealing with multiple 
 translations in your entities simple as well.

 http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#orm-improvementsORM
  
 improvements

 We've continued to build out capabilities in the ORM. Some notable 
 improvements in dev2 were:

- Composite primary key support - The ORM now supports composite 
primary keys in all associations.
- The Model.beforefind event is now triggered for all associations in 
the same query.
- Eager loading is now separate from the Query class. This makes 
implementing custom eager loading much easier.
- Model/Repository was renamed to Model/Table. Several people found 
'Repository' to be a confusing and alien term.
- Interfaces have been extracted to reduce the reliance on concrete 
implementations.
- The formatResults() method has been added to provide many of the 
features that afterFind() used to do.
- Query::counter() was added to provide support for complex count 
logic. This makes it easier to override the count in the 
 PaginatorComponent.
- Table::patchEntity() was added, it enables you to merge requet form 
data into an existing entity and its associations.


 http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#up-nextUp
  
 next

 Our next release will be yet another development preview. In the dev3 
 release we are going to focus on updating:

- Bake and all the related tasks need to be updated to work with the 
new ORM.
- Update the i18n extract task to extract validation messages from 
Table objects
- Add support for SQLServer. With the database layer reasonably stable 
adding 

Re: CakePHP 3.0.0 development preview 2 released

2014-04-16 Thread euromark
I can't.

Am Mittwoch, 16. April 2014 14:34:56 UTC+2 schrieb steven lee:

 who can send me some video about cakephp?

 On Thursday, March 13, 2014 5:35:36 AM UTC+8, José Lorenzo wrote:

 The CakePHP core team is excited to announce the second development 
 preview of CakePHP 3.0.0[1]. In the few months since 3.0.0-dev1, we've been 
 hard at work incorporating community feedback on the ORM, and building out 
 some of the functionality that was missing in the first development preview.

 http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#new-features-in-300-dev2New
  
 features in 3.0.0-dev2

- CakePHP has adopted the PSR-4 autoloader standard. If you are 
updating, make sure you update composer as well using
composer self-update .
- The directory structure of both CakePHP and the App skeleton has 
been simplified a bit thanks to PSR-4.
- The AclComponent has been removed - It will be returning as a 
plugin.
- The TestShell, and webrunner have been removed in favor of only 
supporting phpunit from the CLI, and VisualPHPUnit.
- View templates have been moved from View/ to Template/. This was 
done so the View/ directory would only contain view classes and helpers.
- The HtmlHelper, FormHelper, and SessionHelper use string templates 
consistently.
- ID attributes are now always generated with - instead of CamelCase. 
This was done to standardize on one convention for CSS selectors.
- API documentation and the cookbook have had many new sections and 
improvements.
- Scaffold has been removed. Improved dynamic scaffolding is now 
available through the CRUD plugin[2] which is already compatible with 3.0 
and takes away much of the repetitive tasks done in controllers.
- The UpgradeShell has been moved into a separate plugin.
- Better debugging output for some complex objects like Entities, 
Tables and Queries. Also added a special method to control what data is 
outputed for objects when using the debug() function
- Added Collection::insert()


 http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#formhelper
 FormHelper

 FormHelper has been re-built from the ground up. It features a new 
 extensible widget system. Form widgets allow you to build self contained 
 input widgets. This makes it easy to define complex widgets like the 
 datetime widget in application or plugin code. Once created, widgets can be 
 combined with other FormHelper features like input() .

 FormHelper also works with the new ORM now. You can create forms for 
 individual entities, or collections of entities:


 // Create a form for a single entity  its associations
 echo $this-Form-create($article);

 // Create a form for multiple entities  their associations.
 echo $this-Form-create($articles);

 FormHelper also features a pluggable context system that allows you to 
 integrate FormHelper with any ORM you may wish to use.

 http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#translatebehavior
 TranslateBehavior

 TranslateBehavior has been re-built from the ground up. It features the 
 long awaited ability to translate *all* models including associations 
 from a find(). The new TranslateTrait makes dealing with multiple 
 translations in your entities simple as well.

 http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#orm-improvementsORM
  
 improvements

 We've continued to build out capabilities in the ORM. Some notable 
 improvements in dev2 were:

- Composite primary key support - The ORM now supports composite 
primary keys in all associations.
- The Model.beforefind event is now triggered for all associations in 
the same query.
- Eager loading is now separate from the Query class. This makes 
implementing custom eager loading much easier.
- Model/Repository was renamed to Model/Table. Several people found 
'Repository' to be a confusing and alien term.
- Interfaces have been extracted to reduce the reliance on concrete 
implementations.
- The formatResults() method has been added to provide many of the 
features that afterFind() used to do.
- Query::counter() was added to provide support for complex count 
logic. This makes it easier to override the count in the 
 PaginatorComponent.
- Table::patchEntity() was added, it enables you to merge requet form 
data into an existing entity and its associations.


 http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#up-nextUp
  
 next

 Our next release will be yet another development preview. In the dev3 
 release we are going to focus on updating:

- Bake and all the related tasks need to be updated to work with the 
new ORM.
- Update the i18n extract task to extract validation messages from 
Table objects
- 

Re: CakePHP 3.0.0 development preview 2 released

2014-04-09 Thread mark_story
The tricky part with ODBC is getting the correct SQL dialect wired up. What 
kind of database do you want to connect with over ODBC?

-Mark

On Tuesday, 8 April 2014 03:03:24 UTC-4, Comrade Raj wrote:

 Any support for ODBC as a datasource ? 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


CakePHP 3.0.0 development preview 2 released

2014-04-08 Thread Comrade Raj
Any support for ODBC as a datasource ? 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP 3.0.0 development preview 2 released

2014-04-08 Thread José Lorenzo
Not yet, although it may not be difficult at all to support it. Do you want 
to help?

If I'm not mistaken you can use any of the provided drivers (sqlite, mysql, 
postgres) and pass an ODBC connection string (DSN). I build the drivers 
with that use case in mind.

On Tuesday, April 8, 2014 9:03:24 AM UTC+2, Comrade Raj wrote:

 Any support for ODBC as a datasource ? 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP 3.0.0 development preview 2 released

2014-03-14 Thread mark_story
Thanks for pointing those issues out. I will get the app skeleton and docs 
updated.

-mark

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP 3.0.0 development preview 2 released

2014-03-14 Thread Christopher Castro
I see.
No really, no particular reason.
I just like the model autoloading feature in 2.x. I'm a bit lazy and don't
like to manually loadModel()... heheh

Regards


2014-03-13 23:45 GMT+01:00 José Lorenzo jose@gmail.com:

 $uses was not actually offering much. Is there a particular reason you
 wanted to keep it?


 On Thursday, March 13, 2014 9:51:14 PM UTC+1, Christopher Castro wrote:

 Yes I know... nothing new, similar to old versions of cake.

 Is there any reason about removing Controller::$uses ?
 because I dont see the point. Moreover, app-template
 (PagesController::$uses) and 3.0-book still mention it.


 2014-03-13 21:33 GMT+01:00 Thomas von Hassel dar...@gmail.com:

 No, a PostsController will try to load a table class called PostsTable
 automagically

 /thomas



 On 13 Mar 2014, at 21:29, Christopher Castro ch...@quickapps.es wrote:

 Hi,

 I'm taking a look to the new ORM, and I've noticed there is no longer
 Controller::$uses.
 we have to use loadModel() instead? No more model autoloading?  :(

 Great work btw


 2014-03-13 16:11 GMT+01:00 José Lorenzo jose...@gmail.com:

 Sorry, I made a mistake in my previous paste, This is a new version
 http://bin.cakephp.org/saved/120567

 There was another thread with the same topic here in the group, you may
 want to check it to know how it is supposed to work if you create your
 Entity class.


 On Thursday, March 13, 2014 4:09:36 PM UTC+1, José Lorenzo wrote:

 Yeah, you need an entity class or do the following:

 http://bin.cakephp.org/saved/120566

 Check the modified lines in the add() method. This is just a
 workaround if you don't want a custom entity. We hope to make this easier
 and more clear in the future.

 On Thursday, March 13, 2014 4:03:08 PM UTC+1, André Luis wrote:

 My Controller: http://bin.cakephp.org/saved/120565
 I didnt create any entity yet, but the index and view are working
 very well.


 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to cake-php+u...@googlegroups.com.
 To post to this group, send email to cake...@googlegroups.com.

 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 --
 Christopher Castro.
 Analista Programador Senior PHP/MySQL
 Pamplona, España
 QuickApps CMS http://www.quickappscms.org/


 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to cake-php+u...@googlegroups.com.
 To post to this group, send email to cake...@googlegroups.com.

 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.


  --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to cake-php+u...@googlegroups.com.
 To post to this group, send email to cake...@googlegroups.com.

 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 --
 Christopher Castro.
 Analista Programador Senior PHP/MySQL
 Pamplona, España
 QuickApps CMS http://www.quickappscms.org

   --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




-- 
Christopher Castro.
Analista Programador Senior PHP/MySQL
Pamplona, España
QuickApps CMS http://www.quickappscms.org

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP 3.0.0 development preview 2 released

2014-03-14 Thread Dr. Tarique Sani
Hey Christopher,

The Table and Entity classes are still automagically included in the
controller if you follow the naming conventions.

Cheers
Tarique


On Fri, Mar 14, 2014 at 5:43 PM, Christopher Castro ch...@quickapps.eswrote:

 I see.
 No really, no particular reason.
 I just like the model autoloading feature in 2.x. I'm a bit lazy and don't
 like to manually loadModel()... heheh

 Regards


 2014-03-13 23:45 GMT+01:00 José Lorenzo jose@gmail.com:

 $uses was not actually offering much. Is there a particular reason you
 wanted to keep it?


 On Thursday, March 13, 2014 9:51:14 PM UTC+1, Christopher Castro wrote:

 Yes I know... nothing new, similar to old versions of cake.

 Is there any reason about removing Controller::$uses ?
 because I dont see the point. Moreover, app-template
 (PagesController::$uses) and 3.0-book still mention it.


 2014-03-13 21:33 GMT+01:00 Thomas von Hassel dar...@gmail.com:

 No, a PostsController will try to load a table class called PostsTable
 automagically

 /thomas



 On 13 Mar 2014, at 21:29, Christopher Castro ch...@quickapps.es
 wrote:

 Hi,

 I'm taking a look to the new ORM, and I've noticed there is no longer
 Controller::$uses.
 we have to use loadModel() instead? No more model autoloading?  :(

 Great work btw


 2014-03-13 16:11 GMT+01:00 José Lorenzo jose...@gmail.com:

 Sorry, I made a mistake in my previous paste, This is a new version
 http://bin.cakephp.org/saved/120567

 There was another thread with the same topic here in the group, you
 may want to check it to know how it is supposed to work if you create your
 Entity class.


 On Thursday, March 13, 2014 4:09:36 PM UTC+1, José Lorenzo wrote:

 Yeah, you need an entity class or do the following:

 http://bin.cakephp.org/saved/120566

  Check the modified lines in the add() method. This is just a
 workaround if you don't want a custom entity. We hope to make this easier
 and more clear in the future.

 On Thursday, March 13, 2014 4:03:08 PM UTC+1, André Luis wrote:

 My Controller: http://bin.cakephp.org/saved/120565
 I didnt create any entity yet, but the index and view are working
 very well.


 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to cake-php+u...@googlegroups.com.
 To post to this group, send email to cake...@googlegroups.com.

 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 --
 Christopher Castro.
 Analista Programador Senior PHP/MySQL
 Pamplona, España
 QuickApps CMS http://www.quickappscms.org/


 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to cake-php+u...@googlegroups.com.
 To post to this group, send email to cake...@googlegroups.com.

 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.


  --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to cake-php+u...@googlegroups.com.
 To post to this group, send email to cake...@googlegroups.com.

 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 --
 Christopher Castro.
 Analista Programador Senior PHP/MySQL
 Pamplona, España
 QuickApps CMS http://www.quickappscms.org

   --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 --
 Christopher Castro.
 Analista Programador Senior PHP/MySQL
 Pamplona, España
 QuickApps CMS http://www.quickappscms.org

  --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at 

Re: CakePHP 3.0.0 development preview 2 released

2014-03-14 Thread Stephen S
I think the only time I have implemented $uses is when I've built a shell
which directly deals with one model throughout...


On 14 March 2014 12:13, Christopher Castro ch...@quickapps.es wrote:

 I see.
 No really, no particular reason.
 I just like the model autoloading feature in 2.x. I'm a bit lazy and don't
 like to manually loadModel()... heheh

 Regards


 2014-03-13 23:45 GMT+01:00 José Lorenzo jose@gmail.com:

 $uses was not actually offering much. Is there a particular reason you
 wanted to keep it?


 On Thursday, March 13, 2014 9:51:14 PM UTC+1, Christopher Castro wrote:

 Yes I know... nothing new, similar to old versions of cake.

 Is there any reason about removing Controller::$uses ?
 because I dont see the point. Moreover, app-template
 (PagesController::$uses) and 3.0-book still mention it.


 2014-03-13 21:33 GMT+01:00 Thomas von Hassel dar...@gmail.com:

 No, a PostsController will try to load a table class called PostsTable
 automagically

 /thomas



 On 13 Mar 2014, at 21:29, Christopher Castro ch...@quickapps.es
 wrote:

 Hi,

 I'm taking a look to the new ORM, and I've noticed there is no longer
 Controller::$uses.
 we have to use loadModel() instead? No more model autoloading?  :(

 Great work btw


 2014-03-13 16:11 GMT+01:00 José Lorenzo jose...@gmail.com:

 Sorry, I made a mistake in my previous paste, This is a new version
 http://bin.cakephp.org/saved/120567

 There was another thread with the same topic here in the group, you
 may want to check it to know how it is supposed to work if you create your
 Entity class.


 On Thursday, March 13, 2014 4:09:36 PM UTC+1, José Lorenzo wrote:

 Yeah, you need an entity class or do the following:

 http://bin.cakephp.org/saved/120566

  Check the modified lines in the add() method. This is just a
 workaround if you don't want a custom entity. We hope to make this easier
 and more clear in the future.

 On Thursday, March 13, 2014 4:03:08 PM UTC+1, André Luis wrote:

 My Controller: http://bin.cakephp.org/saved/120565
 I didnt create any entity yet, but the index and view are working
 very well.


 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to cake-php+u...@googlegroups.com.
 To post to this group, send email to cake...@googlegroups.com.

 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 --
 Christopher Castro.
 Analista Programador Senior PHP/MySQL
 Pamplona, España
 QuickApps CMS http://www.quickappscms.org/


 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to cake-php+u...@googlegroups.com.
 To post to this group, send email to cake...@googlegroups.com.

 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.


  --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to cake-php+u...@googlegroups.com.
 To post to this group, send email to cake...@googlegroups.com.

 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 --
 Christopher Castro.
 Analista Programador Senior PHP/MySQL
 Pamplona, España
 QuickApps CMS http://www.quickappscms.org

   --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 --
 Christopher Castro.
 Analista Programador Senior PHP/MySQL
 Pamplona, España
 QuickApps CMS http://www.quickappscms.org

  --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For 

Re: CakePHP 3.0.0 development preview 2 released

2014-03-14 Thread Christopher Castro
yes yes, I know, it will autoload AriclesTable for ArticlesController.
This just work when having 1:1 relation between Controller and Model.

But I have some complex applications where Controller uses more than 1
model (unrelated each other)... so I like to declare Controller::$uses and
load all of them at the begining with a single line.
An example: StatisticsController. There is no StatisticsTable nor
StatisticEntity, it uses a bunch of models to do some statistical stuff,
and it may create relations between models on the fly to do its job.
So now, in 3.0,  I'll have to loadModel() each model on controller's
contructor or beforeFilter callback
Not a big deal, I can live without $uses

Regards



2014-03-14 13:20 GMT+01:00 Stephen S hellospeak...@gmail.com:

 I think the only time I have implemented $uses is when I've built a shell
 which directly deals with one model throughout...


 On 14 March 2014 12:13, Christopher Castro ch...@quickapps.es wrote:

 I see.
 No really, no particular reason.
 I just like the model autoloading feature in 2.x. I'm a bit lazy and
 don't like to manually loadModel()... heheh

 Regards


 2014-03-13 23:45 GMT+01:00 José Lorenzo jose@gmail.com:

 $uses was not actually offering much. Is there a particular reason you
 wanted to keep it?


 On Thursday, March 13, 2014 9:51:14 PM UTC+1, Christopher Castro wrote:

 Yes I know... nothing new, similar to old versions of cake.

 Is there any reason about removing Controller::$uses ?
 because I dont see the point. Moreover, app-template
 (PagesController::$uses) and 3.0-book still mention it.


 2014-03-13 21:33 GMT+01:00 Thomas von Hassel dar...@gmail.com:

 No, a PostsController will try to load a table class called PostsTable
 automagically

 /thomas



 On 13 Mar 2014, at 21:29, Christopher Castro ch...@quickapps.es
 wrote:

 Hi,

 I'm taking a look to the new ORM, and I've noticed there is no longer
 Controller::$uses.
 we have to use loadModel() instead? No more model autoloading?  :(

 Great work btw


 2014-03-13 16:11 GMT+01:00 José Lorenzo jose...@gmail.com:

 Sorry, I made a mistake in my previous paste, This is a new version
 http://bin.cakephp.org/saved/120567

 There was another thread with the same topic here in the group, you
 may want to check it to know how it is supposed to work if you create 
 your
 Entity class.


 On Thursday, March 13, 2014 4:09:36 PM UTC+1, José Lorenzo wrote:

 Yeah, you need an entity class or do the following:

 http://bin.cakephp.org/saved/120566

  Check the modified lines in the add() method. This is just a
 workaround if you don't want a custom entity. We hope to make this 
 easier
 and more clear in the future.

 On Thursday, March 13, 2014 4:03:08 PM UTC+1, André Luis wrote:

 My Controller: http://bin.cakephp.org/saved/120565
 I didnt create any entity yet, but the index and view are working
 very well.


 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it,
 send an email to cake-php+u...@googlegroups.com.
 To post to this group, send email to cake...@googlegroups.com.

 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 --
 Christopher Castro.
 Analista Programador Senior PHP/MySQL
 Pamplona, España
 QuickApps CMS http://www.quickappscms.org/


 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to cake-php+u...@googlegroups.com.
 To post to this group, send email to cake...@googlegroups.com.

 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.


  --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to cake-php+u...@googlegroups.com.
 To post to this group, send email to cake...@googlegroups.com.

 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 --
 Christopher Castro.
 Analista Programador Senior PHP/MySQL
 Pamplona, España
 QuickApps CMS http://www.quickappscms.org

   --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to 

Re: CakePHP 3.0.0 development preview 2 released

2014-03-14 Thread André Luis
I Igree with Christopher, I also have some controllers wich uses more than 
one table, also there are some cases wich i need to load them in 
AppController and define some values to the whole application. So would be 
better keeping the $uses.


Em quarta-feira, 12 de março de 2014 18h35min36s UTC-3, José Lorenzo 
escreveu:

 The CakePHP core team is excited to announce the second development 
 preview of CakePHP 3.0.0[1]. In the few months since 3.0.0-dev1, we've been 
 hard at work incorporating community feedback on the ORM, and building out 
 some of the functionality that was missing in the first development preview.

 http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#new-features-in-300-dev2New
  
 features in 3.0.0-dev2

- CakePHP has adopted the PSR-4 autoloader standard. If you are 
updating, make sure you update composer as well using
composer self-update .
- The directory structure of both CakePHP and the App skeleton has 
been simplified a bit thanks to PSR-4.
- The AclComponent has been removed - It will be returning as a plugin.
- The TestShell, and webrunner have been removed in favor of only 
supporting phpunit from the CLI, and VisualPHPUnit.
- View templates have been moved from View/ to Template/. This was 
done so the View/ directory would only contain view classes and helpers.
- The HtmlHelper, FormHelper, and SessionHelper use string templates 
consistently.
- ID attributes are now always generated with - instead of CamelCase. 
This was done to standardize on one convention for CSS selectors.
- API documentation and the cookbook have had many new sections and 
improvements.
- Scaffold has been removed. Improved dynamic scaffolding is now 
available through the CRUD plugin[2] which is already compatible with 3.0 
and takes away much of the repetitive tasks done in controllers.
- The UpgradeShell has been moved into a separate plugin.
- Better debugging output for some complex objects like Entities, 
Tables and Queries. Also added a special method to control what data is 
outputed for objects when using the debug() function
- Added Collection::insert()


 http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#formhelper
 FormHelper

 FormHelper has been re-built from the ground up. It features a new 
 extensible widget system. Form widgets allow you to build self contained 
 input widgets. This makes it easy to define complex widgets like the 
 datetime widget in application or plugin code. Once created, widgets can be 
 combined with other FormHelper features like input() .

 FormHelper also works with the new ORM now. You can create forms for 
 individual entities, or collections of entities:


 // Create a form for a single entity  its associations
 echo $this-Form-create($article);

 // Create a form for multiple entities  their associations.
 echo $this-Form-create($articles);

 FormHelper also features a pluggable context system that allows you to 
 integrate FormHelper with any ORM you may wish to use.

 http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#translatebehavior
 TranslateBehavior

 TranslateBehavior has been re-built from the ground up. It features the 
 long awaited ability to translate *all* models including associations 
 from a find(). The new TranslateTrait makes dealing with multiple 
 translations in your entities simple as well.

 http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#orm-improvementsORM
  
 improvements

 We've continued to build out capabilities in the ORM. Some notable 
 improvements in dev2 were:

- Composite primary key support - The ORM now supports composite 
primary keys in all associations.
- The Model.beforefind event is now triggered for all associations in 
the same query.
- Eager loading is now separate from the Query class. This makes 
implementing custom eager loading much easier.
- Model/Repository was renamed to Model/Table. Several people found 
'Repository' to be a confusing and alien term.
- Interfaces have been extracted to reduce the reliance on concrete 
implementations.
- The formatResults() method has been added to provide many of the 
features that afterFind() used to do.
- Query::counter() was added to provide support for complex count 
logic. This makes it easier to override the count in the 
 PaginatorComponent.
- Table::patchEntity() was added, it enables you to merge requet form 
data into an existing entity and its associations.


 http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#up-nextUp
  
 next

 Our next release will be yet another development preview. In the dev3 
 release we are going to focus on updating:

- Bake and all the related tasks need to 

Re: CakePHP 3.0.0 development preview 2 released

2014-03-13 Thread André Luis
Amazing news, but I am trying to follow the BLOG tutorial, but when I try 
to save the article, it just says Unable to add your article, what can be 
happen?? the code is exactly the same of blog tutorial... PHP version is 
5.5.6, mysql is the lattest version too...

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP 3.0.0 development preview 2 released

2014-03-13 Thread José Lorenzo
Blog tutorial is not yet completed. Could you please past your entity and 
the controller code here?

On Thursday, March 13, 2014 3:48:10 PM UTC+1, André Luis wrote:

 Amazing news, but I am trying to follow the BLOG tutorial, but when I try 
 to save the article, it just says Unable to add your article, what can be 
 happen?? the code is exactly the same of blog tutorial... PHP version is 
 5.5.6, mysql is the lattest version too...


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP 3.0.0 development preview 2 released

2014-03-13 Thread André Luis
My Controller: http://bin.cakephp.org/saved/120565
I didnt create any entity yet, but the index and view are working very well.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP 3.0.0 development preview 2 released

2014-03-13 Thread José Lorenzo
Yeah, you need an entity class or do the following:

http://bin.cakephp.org/saved/120566

Check the modified lines in the add() method. This is just a workaround if 
you don't want a custom entity. We hope to make this easier and more clear 
in the future.

On Thursday, March 13, 2014 4:03:08 PM UTC+1, André Luis wrote:

 My Controller: http://bin.cakephp.org/saved/120565
 I didnt create any entity yet, but the index and view are working very 
 well.


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP 3.0.0 development preview 2 released

2014-03-13 Thread José Lorenzo
Sorry, I made a mistake in my previous paste, This is a new 
version http://bin.cakephp.org/saved/120567

There was another thread with the same topic here in the group, you may 
want to check it to know how it is supposed to work if you create your 
Entity class.

On Thursday, March 13, 2014 4:09:36 PM UTC+1, José Lorenzo wrote:

 Yeah, you need an entity class or do the following:

 http://bin.cakephp.org/saved/120566

 Check the modified lines in the add() method. This is just a workaround if 
 you don't want a custom entity. We hope to make this easier and more clear 
 in the future.

 On Thursday, March 13, 2014 4:03:08 PM UTC+1, André Luis wrote:

 My Controller: http://bin.cakephp.org/saved/120565
 I didnt create any entity yet, but the index and view are working very 
 well.



-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP 3.0.0 development preview 2 released

2014-03-13 Thread Christopher Castro
Hi,

I'm taking a look to the new ORM, and I've noticed there is no longer
Controller::$uses.
we have to use loadModel() instead? No more model autoloading?  :(

Great work btw


2014-03-13 16:11 GMT+01:00 José Lorenzo jose@gmail.com:

 Sorry, I made a mistake in my previous paste, This is a new version
 http://bin.cakephp.org/saved/120567

 There was another thread with the same topic here in the group, you may
 want to check it to know how it is supposed to work if you create your
 Entity class.


 On Thursday, March 13, 2014 4:09:36 PM UTC+1, José Lorenzo wrote:

 Yeah, you need an entity class or do the following:

 http://bin.cakephp.org/saved/120566

 Check the modified lines in the add() method. This is just a workaround
 if you don't want a custom entity. We hope to make this easier and more
 clear in the future.

 On Thursday, March 13, 2014 4:03:08 PM UTC+1, André Luis wrote:

 My Controller: http://bin.cakephp.org/saved/120565
 I didnt create any entity yet, but the index and view are working very
 well.

  --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




-- 
Christopher Castro.
Analista Programador Senior PHP/MySQL
Pamplona, España
QuickApps CMS http://www.quickappscms.org

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP 3.0.0 development preview 2 released

2014-03-13 Thread Thomas von Hassel
No, a PostsController will try to load a table class called PostsTable 
automagically

/thomas


On 13 Mar 2014, at 21:29, Christopher Castro ch...@quickapps.es wrote:

 Hi,
 
 I'm taking a look to the new ORM, and I've noticed there is no longer 
 Controller::$uses.
 we have to use loadModel() instead? No more model autoloading?  :(
 
 Great work btw
 
 
 2014-03-13 16:11 GMT+01:00 José Lorenzo jose@gmail.com:
 Sorry, I made a mistake in my previous paste, This is a new version 
 http://bin.cakephp.org/saved/120567
 
 There was another thread with the same topic here in the group, you may want 
 to check it to know how it is supposed to work if you create your Entity 
 class.
 
 
 On Thursday, March 13, 2014 4:09:36 PM UTC+1, José Lorenzo wrote:
 Yeah, you need an entity class or do the following:
 
 http://bin.cakephp.org/saved/120566
 
 Check the modified lines in the add() method. This is just a workaround if 
 you don't want a custom entity. We hope to make this easier and more clear in 
 the future.
 
 On Thursday, March 13, 2014 4:03:08 PM UTC+1, André Luis wrote:
 My Controller: http://bin.cakephp.org/saved/120565
 I didnt create any entity yet, but the index and view are working very well.
 
 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP
 
 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.
 
 
 
 -- 
 Christopher Castro.
 Analista Programador Senior PHP/MySQL
 Pamplona, España
 QuickApps CMS
 
 
 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP
 
 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP 3.0.0 development preview 2 released

2014-03-13 Thread Christopher Castro
Yes I know... nothing new, similar to old versions of cake.

Is there any reason about removing Controller::$uses ?
because I dont see the point. Moreover, app-template
(PagesController::$uses) and 3.0-book still mention it.


2014-03-13 21:33 GMT+01:00 Thomas von Hassel darx...@gmail.com:

 No, a PostsController will try to load a table class called PostsTable
 automagically

 /thomas



 On 13 Mar 2014, at 21:29, Christopher Castro ch...@quickapps.es wrote:

 Hi,

 I'm taking a look to the new ORM, and I've noticed there is no longer
 Controller::$uses.
 we have to use loadModel() instead? No more model autoloading?  :(

 Great work btw


 2014-03-13 16:11 GMT+01:00 José Lorenzo jose@gmail.com:

 Sorry, I made a mistake in my previous paste, This is a new version
 http://bin.cakephp.org/saved/120567

 There was another thread with the same topic here in the group, you may
 want to check it to know how it is supposed to work if you create your
 Entity class.


 On Thursday, March 13, 2014 4:09:36 PM UTC+1, José Lorenzo wrote:

 Yeah, you need an entity class or do the following:

 http://bin.cakephp.org/saved/120566

 Check the modified lines in the add() method. This is just a workaround
 if you don't want a custom entity. We hope to make this easier and more
 clear in the future.

 On Thursday, March 13, 2014 4:03:08 PM UTC+1, André Luis wrote:

 My Controller: http://bin.cakephp.org/saved/120565
 I didnt create any entity yet, but the index and view are working very
 well.


 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 --
 Christopher Castro.
 Analista Programador Senior PHP/MySQL
 Pamplona, España
 QuickApps CMS http://www.quickappscms.org/


 --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.


  --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




-- 
Christopher Castro.
Analista Programador Senior PHP/MySQL
Pamplona, España
QuickApps CMS http://www.quickappscms.org

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP 3.0.0 development preview 2 released

2014-03-13 Thread José Lorenzo
$uses was not actually offering much. Is there a particular reason you 
wanted to keep it?

On Thursday, March 13, 2014 9:51:14 PM UTC+1, Christopher Castro wrote:

 Yes I know... nothing new, similar to old versions of cake.

 Is there any reason about removing Controller::$uses ?
 because I dont see the point. Moreover, app-template 
 (PagesController::$uses) and 3.0-book still mention it.


 2014-03-13 21:33 GMT+01:00 Thomas von Hassel dar...@gmail.comjavascript:
 :

 No, a PostsController will try to load a table class called PostsTable 
 automagically

 /thomas



 On 13 Mar 2014, at 21:29, Christopher Castro 
 ch...@quickapps.esjavascript: 
 wrote:

 Hi,

 I'm taking a look to the new ORM, and I've noticed there is no longer 
 Controller::$uses.
 we have to use loadModel() instead? No more model autoloading?  :(
  
 Great work btw


 2014-03-13 16:11 GMT+01:00 José Lorenzo jose...@gmail.com javascript:
 :

 Sorry, I made a mistake in my previous paste, This is a new version 
 http://bin.cakephp.org/saved/120567

 There was another thread with the same topic here in the group, you may 
 want to check it to know how it is supposed to work if you create your 
 Entity class.


 On Thursday, March 13, 2014 4:09:36 PM UTC+1, José Lorenzo wrote:

 Yeah, you need an entity class or do the following:

 http://bin.cakephp.org/saved/120566

 Check the modified lines in the add() method. This is just a workaround 
 if you don't want a custom entity. We hope to make this easier and more 
 clear in the future.

 On Thursday, March 13, 2014 4:03:08 PM UTC+1, André Luis wrote:

 My Controller: http://bin.cakephp.org/saved/120565
 I didnt create any entity yet, but the index and view are working very 
 well.


 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 --- 
 You received this message because you are subscribed to the Google 
 Groups CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to cake-php+u...@googlegroups.com javascript:.
 To post to this group, send email to cake...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 -- 
 Christopher Castro.
 Analista Programador Senior PHP/MySQL
 Pamplona, España
 QuickApps CMS http://www.quickappscms.org/


 -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+u...@googlegroups.com javascript:.
 To post to this group, send email to cake...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.


  -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+u...@googlegroups.com javascript:.
 To post to this group, send email to cake...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/d/optout.




 -- 
 Christopher Castro.
 Analista Programador Senior PHP/MySQL
 Pamplona, España
 QuickApps CMS http://www.quickappscms.org

 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


CakePHP 3.0.0 development preview 2 released

2014-03-12 Thread José Lorenzo


The CakePHP core team is excited to announce the second development preview 
of CakePHP 3.0.0[1]. In the few months since 3.0.0-dev1, we've been hard at 
work incorporating community feedback on the ORM, and building out some of 
the functionality that was missing in the first development preview.
http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#new-features-in-300-dev2New
 
features in 3.0.0-dev2
   
   - CakePHP has adopted the PSR-4 autoloader standard. If you are 
   updating, make sure you update composer as well usingcomposer self-update
.
   - The directory structure of both CakePHP and the App skeleton has been 
   simplified a bit thanks to PSR-4.
   - The AclComponent has been removed - It will be returning as a plugin.
   - The TestShell, and webrunner have been removed in favor of only 
   supporting phpunit from the CLI, and VisualPHPUnit.
   - View templates have been moved from View/ to Template/. This was done 
   so the View/ directory would only contain view classes and helpers.
   - The HtmlHelper, FormHelper, and SessionHelper use string templates 
   consistently.
   - ID attributes are now always generated with - instead of CamelCase. 
   This was done to standardize on one convention for CSS selectors.
   - API documentation and the cookbook have had many new sections and 
   improvements.
   - Scaffold has been removed. Improved dynamic scaffolding is now 
   available through the CRUD plugin[2] which is already compatible with 3.0 
   and takes away much of the repetitive tasks done in controllers.
   - The UpgradeShell has been moved into a separate plugin.
   - Better debugging output for some complex objects like Entities, Tables 
   and Queries. Also added a special method to control what data is outputed 
   for objects when using the debug() function
   - Added Collection::insert()

http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#formhelper
FormHelper

FormHelper has been re-built from the ground up. It features a new 
extensible widget system. Form widgets allow you to build self contained 
input widgets. This makes it easy to define complex widgets like the 
datetime widget in application or plugin code. Once created, widgets can be 
combined with other FormHelper features like input() .

FormHelper also works with the new ORM now. You can create forms for 
individual entities, or collections of entities:


// Create a form for a single entity  its associations
echo $this-Form-create($article);

// Create a form for multiple entities  their associations.
echo $this-Form-create($articles);

FormHelper also features a pluggable context system that allows you to 
integrate FormHelper with any ORM you may wish to use.
http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#translatebehavior
TranslateBehavior

TranslateBehavior has been re-built from the ground up. It features the 
long awaited ability to translate *all* models including associations from 
a find(). The new TranslateTrait makes dealing with multiple translations 
in your entities simple as well.
http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#orm-improvementsORM
 
improvements

We've continued to build out capabilities in the ORM. Some notable 
improvements in dev2 were:

   - Composite primary key support - The ORM now supports composite primary 
   keys in all associations.
   - The Model.beforefind event is now triggered for all associations in 
   the same query.
   - Eager loading is now separate from the Query class. This makes 
   implementing custom eager loading much easier.
   - Model/Repository was renamed to Model/Table. Several people found 
   'Repository' to be a confusing and alien term.
   - Interfaces have been extracted to reduce the reliance on concrete 
   implementations.
   - The formatResults() method has been added to provide many of the 
   features that afterFind() used to do.
   - Query::counter() was added to provide support for complex count logic. 
   This makes it easier to override the count in the PaginatorComponent.
   - Table::patchEntity() was added, it enables you to merge requet form 
   data into an existing entity and its associations.

http://bakery.cakephp.org/articles/lorenzo/2014/03/12/cakephp_3_0_0_dev_preview_2_released#up-nextUp
 
next

Our next release will be yet another development preview. In the dev3 
release we are going to focus on updating:

   - Bake and all the related tasks need to be updated to work with the new 
   ORM.
   - Update the i18n extract task to extract validation messages from Table 
   objects
   - Add support for SQLServer. With the database layer reasonably stable 
   adding SQLServer will help developers on windows.

For more details on all the changes in 3.0.0, you can consult the migration 
guide[2]. I'd like to thank everyone who has contributed thoughts, code,