<?php class Carutoo_Template_FormFillable extends Doctrine_Template { /** * The form, that will be used * * @var Zend_Form */ protected $_form; public function __construct($options) { if (!isset($options['form'])) { throw new Carutoo_Template_Exception('\'form\' not specified', 10); } $this->setFrom($options['form']); } public function setUp() { var_dump($this->getInvoker());// $this->getInvoker()->addListener(new Carutoo_Template_FormFillable_Listener()); }// Rest stripped off