Hi, I'm using cakephp 1.1 and I have problem configuring routes.php
I read the manual but there is just one example so I don't know if I'm
doing it right.
I have an "Account" model and an "AccountsController" controller
composed by 3 actions: index, register and renew
I want:
/accounts/ -> index
/accounts/register/ -> register
/accounts/renew/ -> renew
So my first try was for index:
$Route->connect('/accounts/', array('controller' => 'accounts',
'action' => 'index'));
but it's not working
So I tried this:
$Route->connect('/', array('controller' => 'accounts', 'action' =>
'index'));
and it's working.
Why?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---