Thursday, February 2, 2012

Different frontend and backend controllers

Hi all,

I've been using CakePHP for 3-4 years, and I just downloaded and
started to check the 2.0 version.

One thing that I didn't like about 1.x version, and apparently didn't
change on 2.0, is the prefix routing. IMO, backend and frontend
methods on the same controller isn't a good idea. So, on 1.x, I made
some changes on the core, allowing me to have a different folder
inside controllers directory, called "admin", containing the backend
controllers. And all of them extending an "AdminController", where I
created a lot of default methods (index, add, edit, etc), which made
my life easier.

Now, the question: is there any way I can keep using two different
controllers, with the same name, but different folders, for frontend
and backend, on 2.0, without changing Cake's core again?

Thanks,

Thaissa.

--
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: