Right guys,
what I' trying to achieve is a kinda admin/home page, that holds my
Routing.admin.
I set my Routing.admin as *admin*

------------------------------------------------------------------
Configure::write('Routing.admin', 'admin');
------------------------------------------------------------------

I tryed 2 strategies:
1) build an admin_controller.php with a admin_index() and index()
methods

2) create an action in the pages_controller.php called lets say
admin() and than use the Router like
------------------------------------------------------------------
Router::connect('/admin', array('controller' => 'pages', 'action' =>
'display', 'admin'));
------------------------------------------------------------------

Approach #1 didn't work out.
Approach #2 worked out, but it does not keep the admin_routing in my
admin menu. Namely if in my admin menu I have a link to *posts*, when
I go to www.mysite.com/admin my link changes

from-> www.mysite.com/admin/posts
to-> www.mysite.com/posts

How can I reroute my MAIN admin page without loosing the authomagic of
my ADMIN.ROUTED menu links?

Cheers in advance for your replays!

Dan

PS: I also tryed
------------------------------------------------------------------
Router::connect('/admin', array('controller' => 'pages', 'action' =>
'display', 'admin_index'));
-----------------------------------------------------------------

but it didn't work.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to