Re: CakepHP 2.0 plugins no longer have a default controller?
Just in case anyone else is looking for the answer to this: I posted a ticket on CakePHP's issue tracker: http://cakephp.lighthouseapp.com/projects/42648/tickets/2237-20-plugins-dont-have-a-default-controller To which Mark responded and updated the migration guide: http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html?highlight=migration#router On Oct 26, 7:33 pm, vaughany paulie...@gmail.com wrote: I thought this was just how plugins worked! Glad to hear it's (probably) not. Was linking to /users/users/view/id (as that was what worked) instead of the more preferable /users/view/id. Would dearly love to know how to use the preferable route. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
CakepHP 2.0 plugins no longer have a default controller?
In CakePHP 1.3 you can have a default controller for your plugins. e.g. if you had a Users plugin, you could create a users_controller so that urls such as: /users/index /users/edit/2 mapped to the index/edit actions in the Users controller in the Users plugin In CakePHP 2.0 you no longer seem to be able to do this and now need to use urls such as: /users/users/index /users/users/edit/2 I've tried messing around with custom routing to mimic the 1.3 behavior but with no luck so far. Was this intentionally removed from 2.0 or am I missing something? Thanks in advance. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CakepHP 2.0 plugins no longer have a default controller?
I have an 'Accommodation' plugin with AccommodationController.php and it works fine..? d//t. On Oct 26, 3:52 pm, Richard@Home richardath...@gmail.com wrote: In CakePHP 1.3 you can have a default controller for your plugins. e.g. if you had a Users plugin, you could create a users_controller so that urls such as: /users/index /users/edit/2 mapped to the index/edit actions in the Users controller in the Users plugin In CakePHP 2.0 you no longer seem to be able to do this and now need to use urls such as: /users/users/index /users/users/edit/2 I've tried messing around with custom routing to mimic the 1.3 behavior but with no luck so far. Was this intentionally removed from 2.0 or am I missing something? Thanks in advance. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CakepHP 2.0 plugins no longer have a default controller?
Thanks for the sanity check. Didn't change anything and it's working now :-o I'm putting it down to a temporary caching issue or lackOfCoffee exception! On Oct 26, 3:58 pm, designv...@gmail.com designv...@gmail.com wrote: I have an 'Accommodation' plugin with AccommodationController.php and it works fine..? d//t. On Oct 26, 3:52 pm, Richard@Home richardath...@gmail.com wrote: In CakePHP 1.3 you can have a default controller for your plugins. e.g. if you had a Users plugin, you could create a users_controller so that urls such as: /users/index /users/edit/2 mapped to the index/edit actions in the Users controller in the Users plugin In CakePHP 2.0 you no longer seem to be able to do this and now need to use urls such as: /users/users/index /users/users/edit/2 I've tried messing around with custom routing to mimic the 1.3 behavior but with no luck so far. Was this intentionally removed from 2.0 or am I missing something? Thanks in advance. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CakepHP 2.0 plugins no longer have a default controller?
meh, no its not. Working for prefixed routes, but not for others E.g., I have a register() method in my users controller, Can't reach it with: /users/register gives: Error: Users.RegisterController could not be found. Error: Create the class RegisterController below in file: /home/ richarda/www/test/cake_zero/www/app/Plugin/Users/Controller/ RegisterController.php Can be reached at: /users/users/register /admin/users/index renders the users controller admin_index() method correctly. On Oct 26, 3:58 pm, designv...@gmail.com designv...@gmail.com wrote: I have an 'Accommodation' plugin with AccommodationController.php and it works fine..? d//t. On Oct 26, 3:52 pm, Richard@Home richardath...@gmail.com wrote: In CakePHP 1.3 you can have a default controller for your plugins. e.g. if you had a Users plugin, you could create a users_controller so that urls such as: /users/index /users/edit/2 mapped to the index/edit actions in the Users controller in the Users plugin In CakePHP 2.0 you no longer seem to be able to do this and now need to use urls such as: /users/users/index /users/users/edit/2 I've tried messing around with custom routing to mimic the 1.3 behavior but with no luck so far. Was this intentionally removed from 2.0 or am I missing something? Thanks in advance. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CakepHP 2.0 plugins no longer have a default controller?
I thought this was just how plugins worked! Glad to hear it's (probably) not. Was linking to /users/users/view/id (as that was what worked) instead of the more preferable /users/view/id. Would dearly love to know how to use the preferable route. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php