Welcome Guest, Not a member yet? Register   Sign In
put checks in routes file ?
#2

[eluser]Phil Sturgeon[/eluser]
You want different routes in the same file, based on which site it is?

routes.php

Code:
if($_SERVER['HTTP_HOST'] == 'foo.com')
{
   // routes
}else == 'bar.com')
{
   // routes
}

or use a switch, you get the idea though.


Messages In This Thread
put checks in routes file ? - by El Forum - 11-02-2009, 06:03 AM
put checks in routes file ? - by El Forum - 11-02-2009, 06:35 AM
put checks in routes file ? - by El Forum - 11-02-2009, 08:31 AM
put checks in routes file ? - by El Forum - 11-02-2009, 08:49 AM
put checks in routes file ? - by El Forum - 11-02-2009, 10:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB