Plates and zend-view helpers

zend-form
zend-view

#1

Hello,

I want to use plates as template engine, but would like to use zend-form view helpers for rendering the form, maybe zend-navigation view helpers as well.
Is it possible to integrate zend-view-helpers (e.g. for rendering a form) into the plates template engine in a simple way?
Or, do I have to create a plates extension for each and every view helper, I want to use?

I would appreciate it much if someone could direct me to tutorials or extensive documentation on plates!

Thanks in advance,
LowTower.


#2

You can just add a renderer in front of the PhpRenderer instance that multiplexes calls to other renderers, so that it decides on its own what kind of templating engine to use.


#3

Hello @ocramius,

thanks for Your quick reply!
Could You please be a bit more specific?

Thanks in advance,
LowTower.


#4

You can probably look at https://github.com/ZF-Commons/ZfcTwig for examples.


#5

Thanks,

I’ll check that :wink:

Cheers,
LT.