Ejemplo n.º 1
0
 public static function setReplaceNonExistingTranslationBy($replace_non_existing_translation_by = Lang::REPLACE_BY_KEY_TRANSLATE_ME)
 {
     Lang::$_replace_non_existing_translation_by = $replace_non_existing_translation_by;
 }
Ejemplo n.º 2
0
 /**
  * Require files of Controllers folder
  */
 protected static function controller($routes)
 {
     if ($routes) {
         if (Application::getCurrentModule() !== Config::get('panel.route') && !strpos(Application::getCurrentModule(), "&")) {
             Lang::addDictionary(Application::getCurrentModule(), "index");
             foreach (self::fetch("bundles/" . Application::getCurrentModule() . "/controllers") as $file) {
                 Connector::need($file);
             }
         } else {
             Lang::addDictionary(Config::get('panel.path'), "index", true);
             foreach (self::fetch(Application::$root . Config::get('panel.path') . "controllers") as $file) {
                 Connector::need($file);
             }
         }
     }
 }
Ejemplo n.º 3
0
 /**
  * Init Framework classes
  */
 protected static function ini()
 {
     Alias::ini(self::$root);
     Sys::ini();
     Url::ini();
     Path::ini();
     Template::run();
     Faker::ini();
     Links::ini();
     Errors::ini(self::$root);
     License::ini(self::$page);
     //langues
     Lang::setReplaceBlankTranslationBy(Lang::REPLACE_BY_BLANK);
     Lang::setReplaceNonExistingTranslationBy(Lang::REPLACE_BY_KEY_TRANSLATE_ME);
     Lang::initLanguage();
     Database::ini();
     Auth::ini();
     Plugins::ini();
     Widgets::ini();
 }