Ronald B Stamets Website Design and Development Corner of logo

Ronald B Stamets, Web Site Design and Development Services

top content bar
Home Website design Domains & Hosting E-Commerce Additional Services Contact Us About Us Web Design Tutorials FAQ Pay Bill Site Map Request Estimate

MYSITE Web design Tutorial Conclusion

Your PHP Template

The 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 Conventions

In 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.

Send Your Feedback


:::Key Notes:::

NAVIGATION: We only created a menu on the left for this tutorial. I strongly recommend that navigation includes all of the main links across the bottom of every page as well.

Bottom navigation coule be added to the display_html_footer() function, or a new function called "display_bottom_nav() could be added to the output_fns.php file.

Conclusion

By using the principles you just learned in this tutorial, the page you are currently reading was produced in it's entirety using only 49 lines of actual code on this page. All of the rest was automatically generated by calling PHP functions.

Return To Lesson Index
home
 
Website Design
 
Domains Hosting
 
ECommerce
 
addl services
   
Contact Us
 
About Us
 
Tutorials
 
Design FAQ
 
Pay Bill
 
site map