Yes. And this is the way I would have coded if I didn't get hooked on PHP and just satisfied myself with the first tutorial I completed. I would not be surprised if you've seen the like: we don't need controllers, because each PHP file corresponds to a page on our website. It's the fast and easy way to get started with PHP. It took me starting with Symfony and learning about how we do mvc in PHP that turned me around.
I don't consider php unsafe these days. index.php must be a front controller. the programmer in this case is the problem.
Yes. And this is the way I would have coded if I didn't get hooked on PHP and just satisfied myself with the first tutorial I completed. I would not be surprised if you've seen the like: we don't need controllers, because each PHP file corresponds to a page on our website. It's the fast and easy way to get started with PHP. It took me starting with Symfony and learning about how we do mvc in PHP that turned me around.
PHP is an easy language to learn badly.
That's a really good way to put it!