Esempio n. 1
0
File: View.php Progetto: techart/tao
 public function partial_paths($paths = array(), $base_name = '')
 {
     $paths = parent::partial_paths($paths, $base_name);
     if ($this->current_helper instanceof Templates_HelperInterface) {
         $cname = CMS::get_component_name_for($this->current_helper);
         if ($cname) {
             $component_paths = array();
             foreach (array('app/views', 'views') as $v) {
                 $component_paths[] = rtrim(CMS::component_dir($cname, $v), '/');
             }
             $paths = array_merge($component_paths, $paths);
         }
     }
     $paths = array_merge(array(CMS::current_component_dir('app/views'), CMS::current_component_dir('views')), $paths);
     return $paths;
 }
Esempio n. 2
0
 public function get_name()
 {
     return CMS::get_component_name_for($this);
 }
Esempio n. 3
0
 protected function get_component_name()
 {
     return CMS::get_component_name_for($this);
 }