_resource->getAttribute('layoutName')) { $this->_layoutName = $layoutName; } else { throw new Exception('Either a forActionName or scriptName is required.'); } parent::init(); return $this; } /** * getPersistentAttributes() * * @return unknown */ public function getPersistentAttributes() { $attributes = array(); if ($this->_layoutName) { $attributes['layoutName'] = $this->_layoutName; } return $attributes; } /** * getContents() * * @return string */ public function getContents() { $contents = <<layout()->content; ?> EOS; return $contents; } }