/** * @param null $config * * @return TestApplication */ public function __construct($config = null) { Craft::setApplication(null); clearstatcache(); // No matter how much you want to delete this line... DO NOT DO IT. Craft::$enableIncludePath = false; parent::__construct($config); }
public function __construct($file, $php_self, $request_uri) { // parent::__construct($file, $php_self, $request_uri); // if (!isset($this->_config->module['userrole'])) { $this->_config->module['userrole'] = 0; } // $this->addHook('navbar', array($this, 'render_navbar_logged_user')); }
/** * * * @param type $args */ public function __construct($args) { // parent::__construct($args); // if (!isset($this->_config->module['userrole'])) { $this->_config->module['userrole'] = 0; } // $this->addHook('navbar', array($this, 'renderNavbarSessionUser')); }
/** * @param null $config * * @return TestApplication */ public function __construct($config = null) { Craft::setApplication(null); clearstatcache(); // SHOW EVERYTHING error_reporting(E_ALL & ~E_STRICT); ini_set('display_errors', 1); mb_internal_encoding('UTF-8'); mb_http_input('UTF-8'); mb_http_output('UTF-8'); mb_detect_order('auto'); // No matter how much you want to delete this line... DO NOT DO IT. Craft::$enableIncludePath = false; parent::__construct($config); }
/** * Initialize WebApp with Layerdefinition object * * @param Laerdefinition $definition * * Initializes HTTP (optionally configured for oAuth requests) */ public function initDefinition($definition) { parent::__construct($definition); }
public function __construct($file, $php_self, $request_uri) { parent::__construct($file, $php_self, $request_uri); }
public function __construct($file, $php_self, $request_uri) { parent::__construct($file, $php_self, $request_uri); global $config; $config['modules'][] = 'userrole'; }
/** * * * @param type $args */ public function __construct($args) { // parent::__construct($args); }
public function __construct($params) { parent::__construct($params); }