Routing Table : array(4) { ["/^$/i"]=> array(2) { ["controller"]=> string(4) "Home" ["action"]=> string(5) "index" } ["/^(?P[a-z-]+)\/(?P[a-z-]+)$/i"]=> array(0) { } ["/^(?P[a-z-]+)\/(?P\d+)\/(?P[a-z-]+)$/i"]=> array(0) { } ["/^admin\/(?P[a-z-]+)\/(?P[a-z-]+)$/i"]=> array(1) { ["namespace"]=> string(5) "Admin" } } Request URL : string(10) "home/index" Matching Route : string(49) "/^(?P[a-z-]+)\/(?P[a-z-]+)$/i" Matching Parameters : array(0) { } Matching Regex : array(5) { [0]=> string(10) "home/index" ["controller"]=> string(4) "home" [1]=> string(4) "home" ["action"]=> string(5) "index" [2]=> string(5) "index" } Home

Welcome to MVC From Scratch

brought to you by Kevin with Twig

  • Red
  • Green
  • Blue
Parameters Modified : array(2) { ["controller"]=> string(4) "home" ["action"]=> string(5) "index" }