Ejemplo n.º 1
0
    public function clothes()
    {
        include ROOT_PATH . "/views/customer/clothes.php";
    }
    public function mobile()
    {
        include ROOT_PATH . "/views/customer/mobile.php";
    }
}
$customercontroller = new CustomerController();
if (isset($_GET['m'])) {
    $method = $_GET['m'];
} else {
    $method = "index";
}
switch ($method) {
    case 'index':
        $customercontroller->index();
        break;
    case 'elex':
        $customercontroller->elex();
        break;
    case 'clothes':
        $customercontroller->clothes();
        break;
    case 'mobile':
        $customercontroller->mobile();
        break;
    default:
        $customercontroller->index();
}