function GET($matches) { $home = new HomeController($matches); if (array_key_exists(1, $matches)) { if ($matches[1] == "json") { $home->renderJson(); } } else { $home->render(); } }
function GET($matches) { $home = new HomeController($matches); if (array_key_exists(1, $matches)) { if ($matches[1] == "json") { $home->renderJson(); } } else { $home->render(); } }