To carry out all the processing in Pico, call {@link Pico::run()}.
public __construct ( string $rootDir, string $configDir, string $pluginsDir, string $themesDir ) | ||
$rootDir | string | root directory of this Pico instance |
$configDir | string | config directory of this Pico instance |
$pluginsDir | string | plugins directory of this Pico instance |
$themesDir | string | themes directory of this Pico instance |
public function __construct($options = array()) { parent::__construct($options); $this->initializeSession(); session_start(); $this->initializeErrorHandler(); $this->initializeExceptionHandler(); $this->afterInit('url', $this->_afterInitUrl()); }
public function __construct($options = array()) { parent::__construct(); if (!isset($options['mountPoint'])) { $options['mountPoint'] = PICOWA_MOUNT_POINT; } $confs = isset($options['config']) ? $options['config'] : array(); $this->attach('confs', array('PwConfig', $confs)); $this->attach('options', array('PwArrayWrapper', $options)); $this->attach('url', array('PwUrl', $options['mountPoint'])); $this->initializeSession(); session_start(); Pico::cfg()->use_error_handler and set_error_handler(array($this, 'handleError'), 2); }
public function __construct($rootDir, $configDir, $pluginsDir, $themesDir) { parent::__construct($rootDir, $configDir, $pluginsDir, $themesDir); $this->loadConfig(); }