コード例 #1
0
 protected function getGlobalTemplateDir($template)
 {
     $directory = ncFlavorFlavors::getGlobalPath() . '/templates';
     if (is_readable($directory . '/' . $template)) {
         return $directory;
     }
     return null;
 }
コード例 #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);
 }