public function getFlavorDirectory($module_name, $partial) { $directory = ncFlavorFlavors::getModulePath($module_name) . '/templates'; if ($this->isFlavorPartial($directory, $partial)) { return $directory; } else { return $this->getDirectory(); } }
public function setMessageSource($dirs, $culture = null) { $current = ncFlavorFlavors::getInstance()->current(); $dirs = array_merge($dirs, array(ncFlavorFlavors::getGlobalPath() . DIRECTORY_SEPARATOR . "i18n")); parent::setMessageSource($dirs, $culture); }
public static function initialize() { $autoload = sfSimpleAutoload::getInstance(); $autoload->addDirectory(ncFlavorFlavors::getLibPath()); $autoload->register(); }
protected function currentFlavorConfigFiles() { $current_flavor_path = ncFlavorFlavors::getInstance()->getGlobalPath(false); return array($current_flavor_path . '/config/view.yml'); }