39         $ext = pathinfo($this->
view, PATHINFO_EXTENSION);
 
   42             return "{$this->location}{$this->view}";
 
   45         $str = 
"{$this->location}{$this->view}.{$this->extension}";
 
   46         if ($this->extension === 
null) {
 
   48             $files = glob(
"{$this->location}{$this->view}.*");
 
   52                 $str = 
"{$this->location}{$this->view}.?";
 
   68         $component = 
new self();
 
   73         $component->file = $file;
 
   75         $basename = basename($file);
 
   76         $period = strpos($basename, 
'.');
 
   77         if ($period === 
false) {
 
   79             $component->view = $file;
 
   80             $component->extension = 
'';
 
   82             $cut_off_end = strlen($basename) - $period;
 
   83             $component->view = substr($file, 0, -$cut_off_end);
 
   84             $component->extension = substr($basename, $period + 1);
 
static fromPaths($path, $location)
Get a component from the path and location.
 
$CONFIG view
The current view type.