On Tue, Feb 10, 2009 at 9:31 PM, Iltar <[email protected]> wrote:
>
> How can I set a global routing? Because I can only set it per
> application... In this case game is another app than site, which is
> logical.
You can specify rewrite rules in .htaccess that tell the webserver
which paths do load with which controllers. The controllers then
decide which application to load.
For the above redirect, a strongly recommend to add the second
argument 301 for a permanent redirect, because symfony sends a 302
(temporarily moved) by default.
$this->redirect('module/action', 301);
Bernhard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---