Jump to content
Stef's Coding Community

karam

New Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About karam

  • Rank
    New member
  1. use \com\killerphp\controllers as Controllers; $uri = strtolower($_SERVER['REQUEST_URI']); list($pfx, $controllerName,$actionName) = preg_split('/[\/\\\]/',$uri); echo $uri; switch($controllerName) { case "": case "index": $controller = new Controllers\IndexController($controllerName,$actionName); break; case "test": $controller = new Controllers\TestController($controllerName,$actionName); break; } var_dump($controller); $controller->dispatch(); output is /public/ Notice: Undefined variable: controller in C:\xampp\htdocs\public\index.ph
×
×
  • Create New...