Key words to search for:

Advanced Search


New Entries!


Contact Support

User Manual

Template Customization

Back to Index
Generating PHP pages

 

Important: You must run the generate PHP pages in the Wizard control panel after you have made any changes to your store templates!! Also, don’t edit the php pages—the changes will be lost next time you run the generate PHP function.

This function converts all templates in the specified directories into PHP pages and places them into the corresponding page directories.  These are the pages that are actually linked to. This provides the developer with templates that are cleaner and easier to work without a lot of PHP code that can accidentally get changed or deleted. Do not remove the templates after the PHP is generated. The listing function relies on the original template!

PHP programmers, you can place PHP code directly on the templates and it will become part of the resultant PHP pages.  Web developers who want to dynamically control the look of their pages, will want to at least supply some PHP IF/THEN statements. More details on that. It is not that difficult!

In the source of almost all of the store templates, is the following script tag:
<!--PHP SCRIPT: main-->. This is very essential, as you will see below.

When generating PHP pages, the script does the following:

  • Replaces this script tag with a copy of the XXXmain.php script. This script in turn calls others as needed.
  • Replaces all 5th Avenue shortcuts with essential appropriate PHP code.
  • Places end of process code at the end of the template.
  • Replaces all HTML between include tags with a PHP call to the include file.

When running the PHP generator, you will notice there is an option to select which templates to convert. The admin and wiz templates rarely ever need generating. But, since it is possibly to modify and customize these, you may need to use the other options as well.

 


Related Topics: