zend framework2 - ZF2 mobile subdomain route -
i have website (in zf2) on localhost, , need have 2 url's (that get)
localhost/site m.localhost/site (mobile)
but, when try url mobile subdomain (m.localhost/site) in module.config.php doesn't works. make that
return array( 'router' => array( 'routes' => array( 'mobile' => array( 'type' => 'hostname', 'options' => array( 'route' => m.localhost', 'defaults' => array( 'controller' => 'mobile\controller\index', 'action' => 'index', ), ), ),...
i read examples http://briangallagher.ie/2013/01/29/hostname-subdomain-routing-and-urls-using-zf2/ how route multi subdomain zend router hostname
but doesn't works me. help? thanks!!!!
pd: sorry english
Comments
Post a Comment