Templates

Top  Previous  Next

The ALS PHP template system jump starts web application development by providing high level PHP routines that take care of the low level work required to extract data from XML and display it on web pages. Templates are fully integrated with the Web Portal Content Management System. This means that you can use content from the CMS as simply as including a variable such as

 

$company_main

 

inside an HTML template. the ALS PHP system will automatically and efficiently access the Web Portal API to expand the variable. In this case a call to als_get_company_info.cgi?content=true is executed and the data from the main element is substituted for the $company_main variable.

 

The ALS PHP template system supports pre-defined HTML documents (templates) to be used as "containers" with which to display data from the Web Portal API via XML.

 

Templates are placed in the templates folder under  Web Portal root directory .Any changes to any of the template files will

take affect immediately. Please be sure to have a backup of the default templates as you experiment.

 

Each template file is a plain HTML file and you may use all HTML tags in it. In addition a template may contain:

 

variables
includes
conditions
patterns

 

Files Included

 

 

 

 

ALS is fully committed to extend the PHP template system with such features as AJAX support in the future. Contact the ALS Web Portal Support team for more information.