how to change default module in Zend 2 -
i new zendfeamerwork version 2. change default controller in zend1 seems difficult me find out how change default module in zend2.
i searched on google there no easy solution.
i created module named "csnuser" can access module via following url
http://localhost/zcrud/public/csn-user/
i want csn-user load instead of "application" module i.e url should be
http://localhost/zcrud/public/
or
http://localhost/zcrud/
please let me know how done.
based on @hoolis comment:
you have set action on route
'home' => array( 'type' => 'literal', 'options' => array( 'route' => '/', 'defaults' => array( 'controller' => 'that\namespace\csnuser', 'action' => 'index' ) ) ) )
in skeleton application route set in application module, can move somewhere or edit it.
Comments
Post a Comment