protected function _prepareLayout() { parent::_prepareLayout(); if ($toolbar = Mage::app()->getLayout()->createBlock('page/html_pager')) { $toolbar->setCollection($this->getResultsCollection()); $this->setChild('toolbar', $toolbar); } $data = $this->getFormData(); if ($rating = Mage::app()->getLayout()->createBlock('webforms/rating')) { $rating->setData('webform_id', $data["webform_id"]); $rating->setTemplate('webforms/results/rating.phtml'); $this->setChild('rating', $rating); } return $this; }
protected function _prepareLayout() { if ($this->isEnabled()) { Mage::register('show_form_name', true); // save current title if ($this->getLayout()->getBlock('head')) { $title = $this->getLayout()->getBlock('head')->getTitle(); } parent::_prepareLayout(); // restore title if ($this->getLayout()->getBlock('head')) { $this->getLayout()->getBlock('head')->setTitle($title); } } }