Ejemplo n.º 1
0
 public function __construct()
 {
     Log::set('Initialize Path class');
     $this->stdin();
     $this->path['self'] = pathinfo(__FILE__, PATHINFO_BASENAME);
     $this->path['styles'] = Brightery::pathBuilder([ROOT, 'styles']);
     $this->path['source'] = Brightery::pathBuilder([ROOT, 'source']);
     $this->path['system'] = Brightery::pathBuilder([$this->path['source'], SYSTEM_FOLDER]);
     $this->path['cdn'] = Brightery::pathBuilder([ROOT, 'cdn']);
     $this->path['application'] = Brightery::pathBuilder([$this->path['source'], 'app']);
     $this->path['controllers'] = Brightery::pathBuilder([$this->path['application'], 'controllers']);
     $this->path['models'] = Brightery::pathBuilder([$this->path['application'], 'models']);
     $this->path['helpers'] = Brightery::pathBuilder([$this->path['application'], 'helpers']);
     $this->path['system_helpers'] = Brightery::pathBuilder([$this->path['system'], 'helpers']);
     $this->path['libraries'] = Brightery::pathBuilder([$this->path['application'], 'libraries']);
     $this->pathConstants();
 }