/**
  * Delegate function for the template engine
  */
 public function get_template_file_path($default_root, $filenames, $relative_path = 'templates', $fallback_filename = '')
 {
     if (!is_array($filenames)) {
         $filenames = array($filenames);
     }
     if (!empty($fallback_filename)) {
         $filenames[] = $fallback_filename;
     }
     return $this->template_engine->get_template_file_path($default_root, $filenames, $relative_path);
 }
 /**
  * Add a file to the array of found templates
  * @param string $file_path
  */
 private function add_template_file($file_path)
 {
     $current_path = $this->template_engine->get_template_file_path(pathinfo($file_path, PATHINFO_DIRNAME), basename($file_path), 'templates');
     $t = new CUAR_TemplateFile($file_path, $current_path);
     $this->templates[$t->get_name()] = $t;
 }