示例#1
0
文件: Widget.php 项目: floxim/floxim
 protected function getConfigSources()
 {
     $sources = array();
     $c_name = $this->getControllerName();
     $com_file = fx::path('@module/' . fx::getComponentPath($c_name) . '/cfg.php');
     if (file_exists($com_file)) {
         $sources[] = $com_file;
     }
     return $sources;
 }
示例#2
0
 protected function getConfigSources()
 {
     $sources = array();
     $sources[] = fx::path('@module/' . fx::getComponentPath('floxim.main.content') . '/cfg.php');
     $com = $this->getComponent();
     $chain = $com->getChain();
     foreach ($chain as $com) {
         $com_file = fx::path('@module/' . fx::getComponentPath($com['keyword']) . '/cfg.php');
         if (file_exists($com_file)) {
             $sources[] = $com_file;
         }
     }
     return $sources;
 }
示例#3
0
文件: Entity.php 项目: floxim/floxim
 public function getPath()
 {
     return fx::path('@module/' . fx::getComponentPath($this['keyword']));
 }