Home > PHP > PHP - Class to handle page layout

PHP - Class to handle page layout

System Requirements:

  • Web Server installed;
  • PHP version 5.0 or higher;

Recommended PHP knowledge:

  • Syntax version 5;
  • The instruction includes;
  • Object Oriented Programming;

The knowledge required in this tutorial may not be needed in the creation of the code, as it tries to give information that would be able "to walk" the creator of the pages alone, but we recommend the same smattering general.

This tutorial has been tested under Linux and Windows Server with PHP version 5.

I will explain how to create a class that allows us to separate the layout or presentation layer, application logic. The files we create are as follows:

  • Template.class.php;
  • TemplateException.class.php;
  • . Html file in the template directory.

Tag: , , Categories: PHP Tags: , ,
  1. No comments yet ...
  1. No trackbacks yet ...
Immagine CAPTCHA
Audio CAPTCHA
Change image
*