ppi/framework — Issue #23: New View Layer
Author: dragoonis
Created: 2012-02-27 16:15:25+00:00
State: open

Currently in PPI there is a PPI\View component.

1) It supports specifying a 'layout file'.
2) Then you have an 'action file' which is specified by your controller's action.
3) You can pass parameters into your template process from the controller.
4) You can pass options to the rendering process to tell it wether this is a 'parital' load, to just load the action file, or load the entire template as normal.
5) It has multiple "Template Adapters" which consist of PHP, Smarty, Twig.

I would much prefer to re-use an existing libraries implementation of the above, have something to connect my controller to.

I looked at ZF2's View implementation, it looked a bit crazy and over-complicated, but maybe theres parts we can cherry pick ?
What about symfony?