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: 3
Forks: 1
Open Issues: 0
Language:HTML
pkg:composer/t4web/ze-prototype
Requires
- php: ^5.5
- zendframework/zend-expressive: ^1.0
This package is auto-updated.
Last update: 2025-10-26 19:42:25 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.phtmlhttp://your.host/proto?t=about/second- and will be shown templatetemplates/app/prototype/about/second.phtmlhttp://your.host/proto?t=about/second&l=layout/empty- and will be shown templatetemplates/app/prototype/about/second.phtmland 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/.