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
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/.