public function indexAction() { $this->_helper->viewRenderer->setNoRender(true); Zend_Layout::getMvcInstance()->disableLayout(); $conf = new Z_Config('robots.txt'); echo $conf->getValue(); }
/** * @return Zend_Db_Table_Row */ protected function _getErrorRow() { $row = self::$_model->fetchRow(array('sid=?' => 'error')); if (!$row) { $configError = new Z_Config('error_text'); $errtext = $configError->getValue(); $row = self::$_model->createRow(array('sid' => 'error', 'title' => 'Ошибка', 'text' => $errtext ? $errtext : 'Страница не найдена')); } return $row; }
public function z_config($sid) { return Z_Config::val($sid); }