function setAsCurrentAction() { if (self::$oInstance) { throw new AnwUnexpectedException("instance of AnwAction already created"); } self::$oInstance = $this; self::$sActionLang = AnwCurrentSession::getLang(); //export global JS variables $this->headJs($this->getJsConfig()); //import some JS files $this->head($this->tpl()->headJsSrc(self::getGlobalUrlStaticDefault() . "lib/prototype.js")); $this->head($this->tpl()->headJsSrc(self::getGlobalUrlStaticDefault() . "lib/shortcut.js")); $this->head($this->tpl()->headJsSrc(self::getGlobalUrlStaticDefault() . "lib/scriptaculous/scriptaculous.js")); $this->head($this->tpl()->headJsSrc(self::getGlobalUrlStaticDefault() . "class_utils.js")); $this->head($this->getJsSrcGlobal("global.js")); //import some CSS files $this->head($this->getCssSrcGlobal("styles.css")); }