* * @package stFrontend * @subpackage actions */ class stFrontendMainComponents extends sfComponents { public function executeMainText() { $this->smarty = new stSmarty('stFrontendMain'); if (class_exists('TextPeer')) { if ($this->system_name) { $this->main_text=TextPeer::retrieveBySystemName($this->system_name); } else { $this->main_text=TextPeer::retrieveBySystemName('stFrontendMain-middle'); } if (!$this->main_text) { return sfView::NONE; } } else { return sfView::NONE; } } public function executeCopyright() { $this->lang = $this->getUser()->getCulture(); } }