コード例 #1
0
 public function getFlavorDirectory($module_name, $partial)
 {
     $directory = ncFlavorFlavors::getModulePath($module_name) . '/templates';
     if ($this->isFlavorPartial($directory, $partial)) {
         return $directory;
     } else {
         return $this->getDirectory();
     }
 }
コード例 #2
0
ファイル: pmI18N.class.php プロジェクト: nvidela/kimkelen
 public function setMessageSource($dirs, $culture = null)
 {
     $current = ncFlavorFlavors::getInstance()->current();
     $dirs = array_merge($dirs, array(ncFlavorFlavors::getGlobalPath() . DIRECTORY_SEPARATOR . "i18n"));
     parent::setMessageSource($dirs, $culture);
 }
コード例 #3
0
 public static function initialize()
 {
     $autoload = sfSimpleAutoload::getInstance();
     $autoload->addDirectory(ncFlavorFlavors::getLibPath());
     $autoload->register();
 }
コード例 #4
0
 protected function currentFlavorConfigFiles()
 {
     $current_flavor_path = ncFlavorFlavors::getInstance()->getGlobalPath(false);
     return array($current_flavor_path . '/config/view.yml');
 }