Exemple #1
0
 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;
 }
Exemple #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;
 }
Exemple #3
0
 public function getPath()
 {
     return fx::path('@module/' . fx::getComponentPath($this['keyword']));
 }