if you make route to a /authors/:letter than you should open link like localhost/authors/a not localhost/authors/first-letter/a
why? because you don't have route for /authors/first-letter/:letter and then params are parsed like /:controller/:action/:pass1/:pass2 i hope you understand you need to create a new route for /authors/first-letter/:letter and point it to AuthorsController::first(); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/6/24 Prabha Vathi <prabha.ridd...@gmail.com> > 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 > cake-php+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php