Exemple #1
0
<?php

use PhangoApp\PhaRouter\Routes;
Routes::$root_url = '/';
Routes::$app = 'phangoapp/welcome';
Routes::$apps = ['welcome'];
Routes::$base_path = getcwd();
Routes::$root_path = Routes::$root_path . '/vendor';
Exemple #2
0
<?php

//Loading libraries with includes, don't need more sofisticated methods...
ini_set('html_errors', 0);
require __DIR__ . "/vendor/autoload.php";
use PhangoApp\PhaRouter\Routes;
use PhangoApp\PhaUtils\Utils;
use PhangoApp\PhaView\View;
use PhangoApp\PhaI18n\I18n;
Routes::$base_path = __DIR__;
chdir(Routes::$base_path);
Utils::load_config('config_routes');
Utils::load_config('config_i18n');
Utils::load_config('config');
Utils::load_config('config_views');
/**Load configurations from modules**/
foreach (Routes::$apps as $admin_module) {
    Utils::load_config('config', $path = 'vendor/' . $admin_module . "/settings");
}
/*
include('libraries/fields/corefields.php');
include('libraries/forms/coreforms.php');
*/
I18n::load_lang('common');
//Load extra libraries
/*Utils::load_libraries(array('fields/corefields'));
Utils::load_libraries(array('forms/coreforms'));*/
//date_default_timezone_set (MY_TIMEZONE);
$utility_console = 1;
//load_lang('common', 'user');
$model = array();