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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -