Example #1
0
 /**
  * Get Languages.
  *
  * @return array
  */
 protected function getLanguages()
 {
     $languages = [];
     $coreLanguagesPath = File::directories(core_path('resources/lang'));
     $customLanguagesPath = File::directories(base_path('resources/lang/core'));
     $paths = array_merge($coreLanguagesPath, $customLanguagesPath);
     foreach ($paths as $path) {
         $code = basename($path);
         if (isset($languages[$code])) {
             continue;
         }
         $languageName = Language::whereCode(strtoupper($code))->first();
         $languages[$code] = $languageName ? $languageName->name : ucfirst($code);
     }
     return $languages;
 }
Example #2
0
 /**
  * Get theme path.
  */
 protected function getThemePath()
 {
     return core_path() . '/resources';
 }
Example #3
0
 /**
  * Get the path to the zedx core directory.
  *
  * @return string
  */
 function core_src_path($path = '')
 {
     $root = core_path('src');
     return $path ? $root . DIRECTORY_SEPARATOR . $path : $root;
 }
 public function adminer()
 {
     require_once core_path() . '/views/debug/extra/adminer.php';
 }
Example #5
0
File: view.php Project: zedx/core
<?php

return ['paths' => [realpath(base_path('resources/views')), realpath(core_path('resources/views'))], 'compiled' => realpath(storage_path('framework/views'))];