_templatePath) { $class = get_class($this); $this->_templatePath = substr($class, 0, strrpos($class, '_')); if (0 === strpos($this->_templatePath, 'App_')) { $this->_templatePath = substr($this->_templatePath, 4); } $this->_templatePath = [str_replace('_', '/', $this->_templatePath), 'ViewController']; } return $this->_templatePath; } public function getSideBlockItem(array $blockData = []) { if ('y' != Qs_SiteMap::findFirst(null, ['type' => 'Testimonial_'], null, 'enabled')) { return null; } if (!($item = $this->_getDataObj()->getRandom())) { return null; } $item['tpl'] = $this->getTemplate('side-block.tpl'); return $item; } }