switch($_SERVER[‘PATH_INFO’]) { case ‘/’: echo ‘This is the home page’; break; case ‘/about’: echo ‘This is the about page’; break; default: echo ‘Not found!’; } Good introduction on the Sitepoint website to getting started with a few of the Symfony Components. Starts with the example code above and – one by one – introduces the …
Continue reading “Build your own PHP Framework with Symfony Components”