well obviously solution is stick to standard cake naming conventions
and rename function members_index() to function index()
if you REALLY wanted to use odd names then you'd pretty much have to
hardcode it
Router::connect('/member/wineries/index', array('controller' =>
'wineries', 'action' => 'members_index'));
i'm guessng that answer is near useless for you
Since you're going outside standard conventions for a framework that
is convention based, better solution would to rethink about your whole
site architecture. Do some research on user logins and use of the
beforeFilter() controller function + redirects. Also google
before_filter cos that's the rails equivilant.
On Jan 29, 8:41 am, BFox <[EMAIL PROTECTED]> wrote:
> Im currently making use of the Admin routing built into Cake, however, I also
> need a Members route - Im currently trying the following:
>
> Router::connect('/member/:controller/:action');
>
> When I go to a url lile /member/wineries/index
>
> It tells me the index() method in the Wineries controller doesnt exist,
> which is true, it doesnt exist - However, it should be trying to get the
> members_index() method.
>
> How can I accomplish a simple members_functionname() route setup?
> --
> View this message in
> context:http://www.nabble.com/1.2-Custom-Routing--tp15142779p15142779.html
> Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---