The third parameter is what should be passed to the controller=>action.

You might simply try Router::connect('/', array('controller' => 'users',
'action' =>'index'));

Also be sure that the view index.thtml (1.2 -- index.ctp) is created
in /app/views/users/

On Thu, 2008-01-31 at 21:54 +0700, Feris Thia wrote:

> Hi,
> 
> Is the third parameter in to setup route in routes.php become useless
> in CakePHP 1.2 ?
> 
> I try to use another ctp file (instead of action method related
> template) with this syntax :
> 
> =================================================================
> Router::connect('/', array('controller' => 'users', 'action' =>
> 'index', 'index3'));
> =================================================================
> 
> But it did not try to use index3.ctp and istead cake issue an error :
> 
> =================================================================
> Missing view
> 
> You are seeing this error because the view for
> UsersController::index(), could not be found.
> =================================================================
> 
> Regards,
> 
> Feris
> 
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to