Re: Routes regarding - e-book by Matt Curry
I didn't work with it yet but afaik 'prefix' = 'admin' On May 15, 12:57 am, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: 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:nate.ab...@gmail.com] 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-su... 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Routes regarding - e-book by Matt Curry
Hey Dave, Great question. Something I will definitely add to the next version. Try: Router::connect('/:prefix/:controller/add', array('action' = 'edit')); -Matt http://www.pseudocoder.com On May 14, 6:57 pm, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: 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:nate.ab...@gmail.com] 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-su... 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
RE: Routes regarding - e-book by Matt Curry
Sweet deal! Thanks man! Great job on the book lots of great tips and tricks indeed. Thanks for sharing your insight. Dave -Original Message- From: Matt Curry [mailto:m...@mcurry.net] Sent: May-15-09 1:57 PM To: CakePHP Subject: Re: Routes regarding - e-book by Matt Curry Hey Dave, Great question. Something I will definitely add to the next version. Try: Router::connect('/:prefix/:controller/add', array('action' = 'edit')); -Matt http://www.pseudocoder.com On May 14, 6:57 pm, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: 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:nate.ab...@gmail.com] 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-su.. . 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Routes regarding - e-book by Matt Curry
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:nate.ab...@gmail.com] 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---