Kohana 3.2 Routing and subdomains problem?

There is no built in way to deal with subdomains in routes. So my suggestion comes from searching the internet: One way to do this is get the subdomain from the SERVER global: list($subdomain) = explode('. ', $_SERVER'SERVER_NAME', 2) Then, call a controller or directory in the route based on this subdomain: Route::set('panel', '((/(/)))') ->defaults(array( 'directory' => $subdomain, 'controller' => 'panel', 'action' => 'index', )) Or use lambda/callback routes for more flexibility when handling the subdomain: kohanaframework.org/3.2/guide/kohana/rou... This answer is based on using different templates for different subdomains: kohana v3: using different templates for different subdomains.

There is no built in way to deal with subdomains in routes. So my suggestion comes from searching the internet: One way to do this is get the subdomain from the SERVER global: list($subdomain) = explode('. ', $_SERVER'SERVER_NAME', 2); Then, call a controller or directory in the route based on this subdomain: Route::set('panel', '((/(/)))') ->defaults(array( 'directory' => $subdomain, 'controller' => 'panel', 'action' => 'index', )); Or use lambda/callback routes for more flexibility when handling the subdomain: kohanaframework.org/3.2/guide/kohana/rou... This answer is based on using different templates for different subdomains: kohana v3: using different templates for different subdomains.

There is no built in way to deal with subdomains in routes. Terms of service. Not the answer you're looking for?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions