Example #1
0
 /** Get domain init data
  * @return mixed
  */
 public function load_config()
 {
     $cfg = cfg('domains', \System\Router::get_domain($this->host));
     $this->rules = def($cfg['rules'], null);
     $this->layout = (array) def($cfg['layout'], array());
     $this->policies = (array) def($cfg['policies'], array());
     $this->context = (array) def($cfg['context'], array());
     $this->init = (array) def($cfg['init'], array());
     return $this;
 }