zend framework2 - ZfcUser replace the route -


i'm trying zfcuser route à root of module. mean try delete "/user/login?..." , replace "/login?..." here way rename root : http://juriansluiman.nl/en/article/117/use-3rd-party-modules-in-zend-framework-2

i tried set "/" route zfcuser doesn't works (bjyauthorizestrategy send exception). how route zfcuser children i'm looking ?

part of answer : https://github.com/zf-commons/zfcuser/issues/202

complete answer : code in module.config.php looks :

    'zfcuser' => array(             'type' => 'zend\mvc\router\http\literal',             'options' => array(                 'route' => '', // route void isntead of default 'user'             ),     ),     'zfcuser-login' => array(         'type' => 'literal',         'options' => array(             'route' => '/login',             'defaults' => array(                 'controller' => 'zfcuser',                 'action' => 'login',             ),         ),     ),     'zfcuser-authenticate' => array(         'type' => 'literal',         'options' => array(             'route' => '/authenticate',             'defaults' => array(                 'controller' => 'zfcuser',                 'action' => 'authenticate',             ),         ),     ),     'zfcuser-logout' => array(         'type' => 'literal',         'options' => array(             'route' => '/logout',             'defaults' => array(                 'controller' => 'zfcuser',                 'action'     => 'logout',             ),         ),     ),     'zfcuser-register' => array(         'type' => 'literal',         'options' => array(             'route' => '/register',             'defaults' => array(                 'controller' => 'zfcuser',                 'action'     => 'register',             ),         ),     ),     'zfcuser-changepassword' => array(         'type' => 'literal',         'options' => array(             'route' => '/change-password',             'defaults' => array(                 'controller' => 'zfcuser',                 'action'     => 'changepassword',             ),         ),                             ),     'zfcuser-changeemail' => array(         'type' => 'literal',         'options' => array(             'route' => '/change-email',             'defaults' => array(                 'controller' => 'zfcuser',                 'action' => 'changeemail',             ),         ),                             ), 

i want use custom template login/register etc put :

'view_manager' => array(      ...     'template_path_stack' => array(           // load our module view           'yourmodulename'  => __dir__ . '/../view', // zfcuser have load after            module in application.config.php !!!     ), 

i hope helpful ;)


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -