| Subject: | Re: Prefix routing |
|---|---|
| From: | Tilen Majerle |
| Date: | Mon, 6 Dec 2010 16:19:29 +0100 |
|
yes, u need to define $prefix before call Router::connect :D something like that:
{{{
$prefix = "admin";
Router::connect("/{$prefix}/:controller/:action/*", array('prefix' => $prefix, $prefix => true)); }}}
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.-- Tilen Majerle 2010/12/6 Jeremy Burns <jeremyburns@xxxxxxxxxxxxxxx> According to the book (http://book.cakephp.org/view/950/Prefix- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/cake-php?hl=en |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Prefix routing, Jeremy Burns |
|---|---|
| Next by Date: | translateth.is with cakephp, Gagan |
| Previous by Thread: | Prefix routing, Jeremy Burns |
| Next by Thread: | Re: Prefix routing, Jeremy Burns | Class Outfit |
| Indexes: | [Date] [Thread] [Top] [All Lists] |