Hi all,
In Chapter 9 of Build Your Own Database Driven Website Using PHP and MySQL the access control version gives an example whereby a plain HTML page is served up and upon clicking on one of the links, the controller for say the authors is fired up and redirects you to the login page.
Now I want to have the first page visited as the log in page e.g. Facebook.
I have acheived the result I am after by removing the index.html page and replacing with a controller page (index.php) which contains nothing other than:
This way the code still gets called as intended. However is this the 'correct' way to do things??? I have a suspicion that it isn't and I don't want to fall into bad habits.Code:<?php include 'home/index.php'; ?>
Thanks for your time and help.


Reply With Quote

Bookmarks