예제 #1
0
파일: View.php 프로젝트: 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;
 }
예제 #2
0
파일: Component.php 프로젝트: techart/tao
 public function get_name()
 {
     return CMS::get_component_name_for($this);
 }
예제 #3
0
파일: Controller.php 프로젝트: techart/tao
 protected function get_component_name()
 {
     return CMS::get_component_name_for($this);
 }