t4web / ze-prototype
Zend-Expressive middleware. Prototyping tool - for fast and simple create static html pages
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 1
Open Issues: 0
Language:HTML
Requires
- php: ^5.5
- zendframework/zend-expressive: ^1.0
This package is auto-updated.
Last update: 2024-11-26 17:36:43 UTC
README
Zend-Expressive middleware. Prototyping tool - for fast and simple create static html pages
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
.
After this you may go to page http://your.host/proto?t=about
or
http://your.host/proto?t=about/first
- and will be shown templatetemplates/app/prototype/about/first.phtml
http://your.host/proto?t=about/second
- and will be shown templatetemplates/app/prototype/about/second.phtml
http://your.host/proto?t=about/second&l=layout/empty
- and will be shown templatetemplates/app/prototype/about/second.phtml
and layouttemplates/layout/empty.phtml
Configure
You may override config for your application. In config/autoload/templates.global.php
just add proto
and proto-layout
namespace:
'templates' => [ // ... 'paths' => [ // ... 'proto' => ['templates/app/proto'], 'proto-layout' => ['templates/app/proto/layout'], ], ],
And create folder proto
in templates/app/
.