Download the PHP package stefanotorresi/my-pages without Composer
On this page you can find all versions of the php package stefanotorresi/my-pages. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stefanotorresi/my-pages
More information about stefanotorresi/my-pages
Files in stefanotorresi/my-pages
Package my-pages
Short Description A brutal rip-off of the Zend Framework web site PageController module, written by Matthew Weier O'Phinney. All credit goes to him.
License MIT
Homepage https://github.com/stefanotorresi/MyPages
Informations about the package my-pages
MyPages
MyPages is a very simple Zend Framework 2 module, providing a basic Controller that resolves view templates from the route.
Usage
- Put your view templates inside the
pages
sub directory of a path registered as atemplate_path_stack
with theViewManager
. - Add your routes specifying
MyPages\PageController
as the controller and the template name as thepage
param:
this will render the first resolved pages/static-page-template
view when the route matches /static-page
.
Of course, you can use any other resolver config that works for you.
There are two settings you can change:
Credits
The module is just a brutal rip-off of the Zend Framework web site PageController module, written by Matthew Weier O'Phinney. All credits go to him.
For a more complete module with functionalities like caching, check out Matthew Weier O'Phinney's PhlySimplePage module.
All versions of my-pages with dependencies
stefanotorresi/my-base Version 1.*
zendframework/zendframework Version 2.*