Pico::__construct PHP Method

__construct() public method

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($rootDir, $configDir, $pluginsDir, $themesDir)
    {
        $this->rootDir = rtrim($rootDir, '/\\') . '/';
        $this->configDir = $this->getAbsolutePath($configDir);
        $this->pluginsDir = $this->getAbsolutePath($pluginsDir);
        $this->themesDir = $this->getAbsolutePath($themesDir);
    }

Usage Example

コード例 #1
0
ファイル: Picowa.php プロジェクト: no22/PicowaCore
 public function __construct($options = array())
 {
     parent::__construct($options);
     $this->initializeSession();
     session_start();
     $this->initializeErrorHandler();
     $this->initializeExceptionHandler();
     $this->afterInit('url', $this->_afterInitUrl());
 }
All Usage Examples Of Pico::__construct