Smarty(); $this->setLayout($layout); } public function setLayout($layout) { $this->_layout = $layout; } public function getLayout() { return $this->_layout; } public function display($resource_name, $cache_id = null, $compile_id = null) { $this->assign('content_for_layout', $this->fetch($resource_name, $cache_id, $compile_id)); parent::display($this->getLayout(), $cache_id, $compile_id); } } ?>