Including PHP into layoutAdding a PHP script to the layout allows you to implement an intelligent layout and take some pressure off the SiteSupra blocks to simplify the system and improve its performance. For an example, PHP code in the layout can change or adjust page outlook according to the content type, browser used, website area accessed, or user type being logged in. Moreover, you may have just one layout file for all page types you have in your website and avoid numerous calls to include_once function.
SiteSupra starts processing the layout after the database connection is created and page data is loaded. Thus, you can refer to any SiteSupra variable or API function. Before starting using PHP in the layout make sure phpTemplate and disableCache parameters in the .htsupra
file have the following values: To get more information on configuring SiteSupra click here.
|