2017 © Pedro Peláez
 

library my-pages

A brutal rip-off of the Zend Framework web site PageController module, written by Matthew Weier O'Phinney. All credit goes to him.

image

stefanotorresi/my-pages

A brutal rip-off of the Zend Framework web site PageController module, written by Matthew Weier O'Phinney. All credit goes to him.

  • Monday, February 24, 2014
  • by stefanotorresi
  • Repository
  • 0 Watchers
  • 0 Stars
  • 42 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

MyPages

Latest Stable Version Latest Unstable Version Build Status Code Coverage Scrutinizer Quality Score, (*1)

MyPages is a very simple Zend Framework 2 module, providing a basic Controller that resolves view templates from the route., (*2)

Usage

  1. Put your view templates inside the pages sub directory of a path registered as a template_path_stack with the ViewManager.
  2. Add your routes specifying MyPages\PageController as the controller and the template name as the page param:
   // somewhere in your router config
   'static-page-route' => [
       'type' => 'literal',
       'options' => [
           'route' => '/static-page'
           'defaults' => [
               'controller' => 'MyPages\PageController',
               'page' => 'static-page-template',
           ],
       ],
   ]

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., (*3)

There are two settings you can change:, (*4)

// somewhere in your autoloaded configs
'MyPages' => [
    'route_param_name' => 'page',
    'template_dir' => 'pages',
],

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., (*5)

For a more complete module with functionalities like caching, check out Matthew Weier O'Phinney's PhlySimplePage module., (*6)

The Versions

24/02 2014

dev-master

9999999-dev https://github.com/stefanotorresi/MyPages

A brutal rip-off of the Zend Framework web site PageController module, written by Matthew Weier O'Phinney. All credit goes to him.

  Sources   Download

MIT

The Requires

 

zf2 zend module page controller

24/02 2014

0.1.1

0.1.1.0 https://github.com/stefanotorresi/MyPages

A brutal rip-off of the Zend Framework web site PageController module, written by Matthew Weier O'Phinney. All credit goes to him.

  Sources   Download

MIT

The Requires

 

zf2 zend module page controller

16/01 2014

0.1.0

0.1.0.0 https://github.com/stefanotorresi/MyPages

A brutal rip-off of the Zend Framework web site PageController module, written by Matthew Weier O'Phinney. All credit goes to him.

  Sources   Download

MIT

The Requires

 

zf2 zend module page controller

29/07 2013

0.1.0-alpha

0.1.0.0-alpha https://github.com/stefanotorresi/MyPages

A brutal rip-off of the Zend Framework web site PageController module, written by Matthew Weier O'Phinney. All credit goes to him.

  Sources   Download

MIT

The Requires

 

zf2 zend module page controller