Wednesday, October 26, 2011

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: