ZF2 - Change view directory

For programming and general questions on Zend Framework
Post Reply
Posts: 1
Joined: Wed Oct 02, 2013 8:59 am

ZF2 - Change view directory

Post by nish2999 » Wed Oct 02, 2013 9:08 am

Hello Members,

This is my first post, so please pardon any mistakes, if any.

What I have done :

I have created the basic skeleton app and followed rob Allens tutorial for ZF2.

What I want :

1. I want to move the view directory of my module to my public directory
2. I want ZF2 to look for .html view script files instead of .phtml view script files.

So just like ZF2 would look for the view script file of index action of Album Controller of Album Module in
view/album/album/index.phtml I would want ZF2 to look for the view script file in

Can someone please , please guide me regarding this.I have been reading about ZF2 PHPRender but with no success.

Any help would be greatly appreciated.

Thank you.

Post Reply