Saturday, July 30, 2011

Custom controller name

I have a model named "Cal". I wanted its table name to "cal" (not
"cals").

Now, I would like that its controller could be accessed as: mysite.com/
cal/*
(and avoid being accessed as mysite.com/cals/*).

A plus would be that I can declare the controller as: class
CalController extends...

Is this possible?

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: