Router::connect('/cal', array(
'controller' => 'cals',
'action' => 'index'));
but you can have the model useTable an 'some_unconventional_name'
with the following in the model
public $useTable = 'cal';
- S
On 30 July 2011 23:43, Roland Pish <rolandpish@gmail.com> wrote:
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
--
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:
Post a Comment