public function __construct()
 {
     parent::__construct();
     $this->_init();
 }
Exemple #2
0
<?php

//call the global controller
require_once 'controller/global_controller.php';
//initial new class globalController
$index = new global_controller();
//capture parameter ' v ' of the url
if (isset($_GET['v'])) {
    $view = $_GET['v'];
} else {
    $view = '';
}
$index->run($view);