Show me your full routes.php, please.
Maybe you have:
if(strlen($subdomain) > 0 && $subdomain != "www") {
Router::connect('/*', array('controller'=>'contests',
'action'=>'index'));
Router::connect('/:action/*', array('controller'=>'contests',
'action'=>'index'));
}
Router::connect('/*', array('controller' => 'pages', 'action' =>
'display'));
Case I'm correct you can put a "else" there.
Lile:
if(strlen($subdomain) > 0 && $subdomain != "www") {
Router::connect('/*', array('controller'=>'contests',
'action'=>'index'));
Router::connect('/:action/*', array('controller'=>'contests',
'action'=>'index'));
} else
Router::connect('/*', array('controller' => 'pages', 'action' =>
'display'));
}
On 4/3/08, John R <[EMAIL PROTECTED]> wrote:
>
>
> Nope..
>
> >
>
--
Renan Gonçalves - Software Engineer
Cell Phone: +55 11 8633 6018
MSN: [EMAIL PROTECTED]
São Paulo - SP/Brazil
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---