public function preExecute() { parent::preExecute(); if (sfConfig::get('app_aBlog_use_bundled_assets', true)) { $this->getResponse()->addStylesheet('/apostropheBlogPlugin/css/aBlog.css'); $this->getResponse()->addJavascript('/apostropheBlogPlugin/js/aBlog.js'); } }
public function preExecute() { parent::preExecute(); $request = $this->getRequest(); $this->info = aBlogToolkit::filterForEngine($this->getFilterForEngineParams()); if (sfConfig::get('app_aBlog_use_bundled_assets', true)) { $this->getResponse()->addJavascript('/apostropheBlogPlugin/js/aBlog.js'); } }
/** * DOCUMENT ME */ public function preExecute() { // Establish engine context parent::preExecute(); $response = sfContext::getInstance()->getResponse(); // If this is the admin engine page for media, and you have no media uploading privileges // or page editing privileges, then you have no business being here. If it is not the admin page, // then the site admin has decided to add a public media engine page, and it's fine for anyone // to be here if (aTools::getCurrentPage()->admin) { if (!(aTools::isPotentialEditor() || aMediaTools::userHasUploadPrivilege())) { $this->forward(sfConfig::get('sf_login_module'), sfConfig::get('sf_login_action')); } } }
public function preExecute() { // Establish engine context parent::preExecute(); // If this is the admin engine page for media, and you have no media uploading privileges // or page editing privileges, then you have no business being here. If it is not the admin page, // then the site admin has decided to add a public media engine page, and it's fine for anyone // to be here if (aTools::getCurrentPage()->admin) { if (!(aTools::isPotentialEditor() || aMediaTools::userHasUploadPrivilege())) { $this->forward(sfConfig::get('sf_login_module'), sfConfig::get('sf_login_action')); } } //$this->getResponse()->addStylesheet('/apostrophePlugin/css/aToolkit.css', 'first'); // Merged into a.css 2/3/2010 $this->getResponse()->addStylesheet('/apostrophePlugin/css/a.css', 'first'); $this->getResponse()->addJavascript('/apostrophePlugin/js/aControls.js'); $this->getResponse()->addJavascript('/apostrophePlugin/js/aUI.js'); $this->getResponse()->addJavascript('/apostrophePlugin/js/jquery.hotkeys-0.7.9.min.js'); }
public function preExecute() { parent::preExecute(); $request = $this->getRequest(); $this->info = aBlogToolkit::filterForEngine($this->getFilterForEngineParams()); }