In the section regarding the add / edit functions in 1 he has the routes
Router::connect('/:controller/add', array('action' => 'edit'));

How would you configure this for the admin routing?

I tried 

Router::connect('/:controller/add', array('action' => 'edit'));
or
Router::connect('/:controller/add', array('action' => 'edit', 'admin' =>
true)); 
Or
Router::connect('/admin/:controller/add', array('action' => 'edit'));

And nothing...if I attempted to go to add in the url page not found...did
not connect me to edit.

Ideas?


-----Original Message-----
From: Nate [mailto:[email protected]] 
Sent: May-14-09 5:36 AM
To: CakePHP
Subject: FREE CakePHP e-book by Matt Curry


Hey everyone,

Matt Curry (of CakePHP Digest fame) has just published a *free* e-book on
advanced development techniques with CakePHP.  If you're already a seasoned
Cake developer, this book will help you pick up many new tricks and
best-practice solutions, as well as highlighting many little-known framework
features.

Read all about it here:
http://www.pseudocoder.com/archives/2009/05/13/free-cakephp-e-book-super-awe
some-advanced-cakephp-tips/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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