Posted on April 20th, 2012
2551 views
The index file
The index file is the first point, and only real contact that our possible users will access, there isn't a great deal of stuff in this file because the funcs.php file holds it all. In the index.php file we created earlier, just put this code in it, it has some comments to explain which part of it does.
<?php // Here I am loading the functions that we need. include "funcs.php"; // Here I am generating the classes to be used. $dlsys = new stdClass(); $dlsys->templates = new templates; $dlsys->lib = new lib; // This will call the header template from the database. $dlsys->templates->head(); // This calls the switch function so that we can structure our links $dlsys->lib->getswitch(); // This will call the footer template from the database. $dlsys->templates->foot(); ?>
Now save this file, and move onto the next chapter, The funcs file.
|