'sorter'); protected $_templatePath = array('Process/Part', 'Part', 'ViewController'); public function __construct($options = array()) { parent::__construct($options); $this->_actions = array('list'); } protected function _initAction() { $params = $this->getRestParams(); if (count($params) == 1 && ctype_digit($params[0])) { $this->dataObj->setProcessId($params[0]); $process = $this->dataObj->getProcessById($params[0]); $header = $process['departmentName'] . ' » '; if (isset($process['subDepartmentName'])) { $header .= $process['subDepartmentName'] . ' » '; } $header .= $process['name']; $this->doc->setHeader($header); $this->doc->setTitle($this->doc->getTitle() . ' :: ' . $process['name']); } return parent::_initAction(); } }