fourmation/static-pages

The purpose of this module is to create a simple, zero configuration static pages module for Zend Framework 2

dev-develop 2013-03-21 03:23 UTC

This package is not auto-updated.

Last update: 2024-12-21 14:53:15 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)