protected function _construct() { parent::_construct(); if ($this->isEmail()) { $this->setTemplate(self::TEMPLATE_PATH_EMAIL); } else { $this->setTemplate(self::TEMPLATE_PATH_FRONTEND); } $pid = $this->getRequest()->getParam('pid'); if ($pid) { /** @var $post Magpleasure_Forms_Model_List */ $post = Mage::getModel('forms/list')->load($pid); $this->setPost($post); } }
protected function _construct() { parent::_construct(); $this->setTemplate(self::TEMPLATE_PATH); }