Hi,

Router::connect('/authors/:letter', array('controller' => 'authors', 
'action' => 'first'),array('pass' => array('letter'),'letter' => 
'[a-zA-Z]'));

http://localhost/cakephp/authors/first-letter/a

I am getting the following error.

*Error: * The action *first-letter* is not defined in controller *
AuthorsController**
Error: * Create *AuthorsController::**first-letter()* in file: 
app\controllers\authors_controller.php.

i think, if i rename first() in authors controller to first-name, it will 
work. But to achieve this in routers without changing in controller

Thanks

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to