Hi,

On 21 Jul 2009, at 15:38, Mathieu Suen wrote:

Hi,

A very simple question. How can I share view script (*.phtml) among sevral action?
Thanks


The regulation method here is via the ViewRenderer Action Helper.

http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.viewrenderer

Say fooAction _owns_ the view script you want to reuse. In your other actions do:

$this->_helper->ViewRenderer->setScriptAction('foo');

Regards,
Carlton

--
-- Mathieu Suen
--

Reply via email to