2017 © Pedro Peláez
 

library ze-prototype

Zend-Expressive middleware. Prototyping tool - for fast and simple create static html pages

image

t4web/ze-prototype

Zend-Expressive middleware. Prototyping tool - for fast and simple create static html pages

  • Tuesday, February 9, 2016
  • by maxgu
  • Repository
  • 3 Watchers
  • 0 Stars
  • 3 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ZE-Prototype

Zend-Expressive middleware. Prototyping tool - for fast and simple create static html pages, (*1)

Just add Prototype module to your app like this. Then, make sure you create a template for the page. In the above example, I'd likely create the file in templates/app/prototype/about.phtml., (*2)

After this you may go to page http://your.host/proto?t=about or, (*3)

  • http://your.host/proto?t=about/first - and will be shown template templates/app/prototype/about/first.phtml
  • http://your.host/proto?t=about/second - and will be shown template templates/app/prototype/about/second.phtml
  • http://your.host/proto?t=about/second&l=layout/empty - and will be shown template templates/app/prototype/about/second.phtml and layout templates/layout/empty.phtml

Configure

You may override config for your application. In config/autoload/templates.global.php just add proto and proto-layout namespace:, (*4)

'templates' => [
    // ...
    'paths' => [
        // ...
        'proto'  => ['templates/app/proto'],
        'proto-layout'  => ['templates/app/proto/layout'],
    ],
],

And create folder proto in templates/app/., (*5)

The Versions

09/02 2016

dev-master

9999999-dev https://github.com/t4web/ZE-Prototype

Zend-Expressive middleware. Prototyping tool - for fast and simple create static html pages

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar maxgu

prototype zend-expressive zend-expressive middleware