Skip to content

Instantly share code, notes, and snippets.

View voycey's full-sized avatar

Dan Voyce voycey

  • Melbourne
View GitHub Profile
@voycey
voycey / routes
Created April 29, 2014 11:30 — forked from egalles79/routes
$subdomain = substr( env("HTTP_HOST"), 0, strpos(env("HTTP_HOST"), ".") );
Configure::write('captacion', '');
if( strlen($subdomain)>0 && $subdomain != "m" ) {
Router::connect('*',array('controller'=>'private','action'=>'promote'));
// Router::connect('/foo', array('controller'=>'mobiles','action'=>'foo'));
Configure::write('captacion', $subdomain);
}