fourmation / static-pages
The purpose of this module is to create a simple, zero configuration static pages module for Zend Framework 2
Requires
- php: >=5.3.3
This package is not auto-updated.
Last update: 2024-11-09 14:20:12 UTC
README
The purpose of this module is to create a simple, zero configuration static pages module for Zend Framework 2
Installation
Added the following requirement to your projects composer.json file.
"fourmation/StaticPages": "dev-master"
and run
php ./composer.phar update and finally add zf2StaticPages to the START of your modules list in config/application.php. It's important this comes first as it may override routes setup later.
Usage
Simply drop a .phtml file into the /view/zf2-static-pages folder.
This page can now be viewed from either
/pages/yourfile/ (with or without trailing backslash) or simply /yourfile/ (with or without trailing backslash)