Example #1
0
 /**
  * Figure out if the path should include the current views path.
  * Or, if it should just take the path as it is.
  *
  * @param string $file 
  * @return string
  * @author Justin Palmer
  */
 private function path($file)
 {
     $match = preg_match('/(\\/)/', $file);
     if (!$match) {
         $file = Template::getCurrentViewPath() . '/_' . $file . '.html.php';
     }
     return $file;
 }