From nate's link: It looks like Router::connect('/
memeber/:controller/:action', array('prefix' => 'member')) would do
what you want.
On Jan 28, 4:45 pm, BFox <[EMAIL PROTECTED]> wrote:
> Essentially im doing 2 sets of Admin functions...
>
> Im using the base Admin routing that comes with cake - This is used as a
> general site admin
> The members routing will be for logged in members (invitation only) that
> have there own profile they can update and submit events
> Finally theres Visitors, just the general public...
>
> Therefore, I need admin_index(), member_index() and index()
>
> renaming member_index() doesnt help..
>
>
>
> Steve Boyd-4 wrote:
>
> > 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.
>
> --
> View this message in
> context:http://www.nabble.com/1.2-Custom-Routing--tp15142779p15146249.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
-~----------~----~----~----~------~----~------~--~---