Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: somov anatolij
Added: Feb 20, 2021 9:38 AM
Views: 0
Tags: no tags
  1. <?php
  2.  
  3. use \core\ {
  4.     configurator\UserConfig,
  5.     errors\ErrorHendler,
  6.     router\Router
  7. };
  8. //      @Анатолий Сомов
  9.  
  10. require_once dirname ( __DIR__ ) . '/core/autoloader/register.php' ;
  11. ErrorHendler::start () ;
  12. $db = new UserConfig();
  13. $global_config = $db-> get_Config ();
  14.  
  15.  
  16. $router = new Router($global_config) ;
  17. $router -> test () ;