MYSITE Web design Tutorial ConclusionYour PHP TemplateThe MYSITE_TEMPLATE.php file you just created can now be "saved as" any page file name you want to create a link to from your menu. This way, you will never need to code anything except adding images and content to any new page created. When you change the name of the link in the menu... It will change across your entire website, saving you hours of time making changes on individual pages. PHP Function File Naming ConventionsIn this tutorial we created one function file for MYSITE called output_fns.php. I use the output_fns file ONLY to display global design elements that are "outputted" globally, or on every page. Thus, if I want to make a change to the global look or the main menu, I need only to look to the output_fns file. Suppose I had a large number of validating forms, like order or shipping forms. I would then create a new function file. I might name it something like forms_fns.php. Notice that I added the _fns? That tells me it is a function file, and in this case, it is associated with forms. Please give us feedback on this tutorial.Please take a minute to let us know if this tutorial has been helpful. Were there areas that you feel we didn't clarify something quite enough? Were there things that were eye opening? Your feedback will help us to better serve you and future users. |