Exemplo n.º 1
0
 /**
  * Find the controller and instantiate it
  */
 public function dispatch()
 {
     //session_start();
     //$_GET['id_drawing'] = '19';
     //    $_GET['rev_system_name'] = '8';
     //    $_GET['id_drawing_rev'] = '11';
     //
     //    $_GET['id_part'] = '7';
     //$_GET['controller'] = 'un_drawings';
     //$_GET['operation'] = 'delete';
     //    $_GET['parent_class'] = '15';
     // Get current controller
     //PRINT_R($_GET);
     global $front;
     require _UN_CONTROLLERS_URI_ . 'un_auths.php';
     $front = new Front();
     //require(_UN_CONTROLLERS_URI_.'auth.php');
     if (isset($_GET['controller'])) {
         $front->runController($_GET['controller']);
     } else {
         //require(_UN_CONTROLLERS_URI_.'index.php');
         $front->runController('un_main');
         //$front->runController('un_constructgroups');
         //$front->runController('un_drawings');
         //$front->runController('un_drawingrevs');
         //$front->runController('UN_Izdelies');
     }
     $front->show();
 }