Beispiel #1
0
 /**
  * Constructor.
  * @param mixed application configuration.
  * If a string, it is treated as the path of the file that contains the configuration;
  * If an array, it is the actual configuration information.
  * Please make sure you specify the {@link getBasePath basePath} property in the configuration,
  * which should point to the directory containing all application logic, template and data.
  * If not, the directory will be defaulted to 'protected'.
  */
 public function __construct($config = null)
 {
     Nbt::setApplication($this);
     //session_start();
     $this->initSystemHandlers();
     $this->init();
 }