-
Notifications
You must be signed in to change notification settings - Fork 342
How to override built in view scripts
Daniel Strøm edited this page May 17, 2015
·
11 revisions
Override the built-in view scripts for pages such as registration and sign-in with your own custom view scripts
- In your module, under the
view
directory, create the folder treezfc-user/user
- Create the necessary override view scripts, depending on which page(s) you want to change:
- User Login page:
zfc-user/user/login.phtml
- User Registration page:
zfc-user/user/register.phtml
- Default post-login landing page:
zfc-user/user/index.phtml
- User Login page:
- Put this into your
module.config.php
file
'view_manager' => array(
'template_path_stack' => array(
'zfc-user' => __DIR__ . '/../view',
),
),
Refer to each built-in view script to see how the form is configured and rendered.
NOTE: Your module must be loaded after ZfcUser or the overriding will not work. To do this, place your module after ZfcUser in the modules
key of your application configuration (config/application.config.php
).