goalio / GoalioForgotPassword

A Zend Framework 2 (ZF2) Module offering forgot password via e-mail functionality to ZfcUser
BSD 3-Clause "New" or "Revised" License
42 stars 49 forks source link

zfc-user #40

Closed gp1 closed 9 years ago

gp1 commented 9 years ago

I am using goalioforgotpassword, for forgot password functionality also I have zfc-user handling the users log-in and authentication stuffs. My problem is the zfc-user log-in view is being overridden by the zfc-user log-in template here in this module. Is there a way to configure so that i won't have this issue.

Thank You in Advance.

pdobrigkeit commented 9 years ago

I am not quite sure what you mean. But you can set the login template to anything you like using the view_managerconfig.

Take a look into the config/module.config.php

'view_manager' => array(
    'template_map' => array(
        'zfc-user/user/login' => __DIR__ . '/../view/zfc-user/user/login.phtml',
    ),
),

You can use that in any module that is loaded after GoalioForgotPassword and override the login template (or set it back to what it was before)

gp1 commented 9 years ago

Thank you so much @pdobrigkeit. I was using template_path_stack before. Largely its due to my pretty less exposure on zf2. Closing the ticket :-)