Wigbi Demos v. 0.99.2   
Documentation: PHP

MasterPage

This class can be used to create page templates that can be used by several pages, which can drastically reduce the amount of code.

Change master page

Let us switch to a master page that uses another theme and only displays the top logo and the main content.

The new master page also uses a content area and a variable that are not used by this master page (they are displayed topmost):

//Define a content area MasterPage::openContent("testContent");
print "Test content";
MasterPage::closeContent("testContent");

//Retrieve a content area
MasterPage::getContent("testContent");

//Set a variable
MasterPage::setVariable("testVariable", "Test variable");

//Retrieve a variable
MasterPage::getVariable("testVariable");
Use the original master page   
Use the test master page


  
 

Rate this class :    

   



  
 

Discuss this class (No comments):


    v. 0.99.2

    v. 0.99.2