Skip to content
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

Open
blutowers opened this issue Feb 20, 2013 · 4 comments
Open

Amend Read Me #4

blutowers opened this issue Feb 20, 2013 · 4 comments

Comments

@blutowers
Copy link

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!

@srikanthkalyan
Copy link

I did it like in the Read Me,but the layout wasn't being applied!! could someone please place the proper steps..??

@esheffield-ivantage
Copy link

@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'
)

@maciejpuchala
Copy link

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?

@Ocramius
Copy link

@maciejpuchala I'd verify the merged config first: something fishy going on there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants