-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Amend Read Me #4
Comments
I did it like in the Read Me,but the layout wasn't being applied!! could someone please place the proper steps..?? |
@srikanthkalyan Did you make sure to load the module in your application.config.php? return array(
'modules' => array(
... ,
'EdpModuleLayouts'
)
); After you've done that you should just be able to follow the instructions here and in the readme. You would add something like this to one of your autoload configs or to a module's module.config.php. 'view_manager' => array(
'template_map' => array(
'mymodule/layout' => __DIR__ . '/../view/layout/layout.phtml'
)
),
'module_layouts' => array(
'MyModule' => 'mymodule/layout'
) |
If I added 'view_manager' => array(
'template_map' => array(
'mymodule/layout' => __DIR__ . '/../view/layout/layout.phtml'
)
), to my /config/autoload/global.php it does not working, but if I added this to module.config.php it works. How can I set global options for templates, depending by some modules? |
@maciejpuchala I'd verify the merged config first: something fishy going on there. |
I implemented the EdpModuleLayouts as instructed in the readme and didnt receive any errors from zend but the layout for my admin module wasn't being applied.
After reading around I found that i had to add a template_map to the view_manager in the module.config.php.
It would be good if this was added to the readme.
Thanks for the code works great!
The text was updated successfully, but these errors were encountered: