*/ class appExtCodeFrontendComponents extends sfComponents { public function executeBeforeHead() { $config = stConfig::getInstance('appExtCodeBackend'); $this->code = $config->get('code', null, true); $on = $config->get('enable', null, true); if ($on != 1 || $this->code == null) { return sfView::NONE; } $this->smarty = new stSmarty('appExtCodeFrontend'); } public function executeAfterBody() { $config = stConfig::getInstance('appExtCodeBackend'); $this->code = $config->get('code2', null, true); $on = $config->get('enable2', null, true); if ($on != 1 || $this->code == null) { return sfView::NONE; } $this->smarty = new stSmarty('appExtCodeFrontend'); } public function executeBeforeBody() { $config = stConfig::getInstance('appExtCodeBackend'); $this->code = $config->get('code3', null, true); $on = $config->get('enable3', null, true); if ($on != 1 || $this->code == null) { return sfView::NONE; } $this->smarty = new stSmarty('appExtCodeFrontend'); } }