Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
Kirby Foster: "Nice software. Small, lightweight, works well. I evaluated lots of software before deciding that your software worked the best for what I do. Both Maestro for MySQL and PHP Generator have saved me lots of time".
Philipp Gerber: "

The product is so easy and super built that you can achieve visible and great success after a short time. Also very much possible with the product. A class product. I'm already looking forward to the next versions and extensions. Keep it up.

Support to the product is just perfect. Each Support request is quickly and very competent solved. Also various assistance, which does not fall into a support, are also perfectly processed. There is a direct wire to the manufacturer / developer and this is notth. Thanks for the class Support".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

Custom templates

Applications created by PHP Generator for MySQL use Smarty, a typical representative of the web template engines family. So in order to redesign a webpage, you need to change the appropriate template. All templates used by the software are stored in the components/templates subfolder of the output directory. Each folder in this catalog contains template files to be used by the application in different cases: on editing, printing, inserting, etc.

 

Using custom templates

 

To change the webpage appearance with custom templates, follow these steps:

 

  Create a new template. Custom templates must be stored under the components/templates/custom_templates folder which contents is not changing on re-generation of the scripts. You must create this folder manually.
  Instruct PHP Generator to use this template for the selected webpage with the OnGetCustomTemplate event.
  Customize the template according to your needs and preferences.

 

The detailed description of such customization is given in the appropriate article. Another article learns how to add a chart component to a webpage using the way described above. The demo application also shows some additional examples of using custom templates.

 

 

Changing existing templates

You can modify generated template files directly. The example of supplying of generated pages with look and feel of an existing website illustrates this method in the appropriate article. Since all the templates are rewritten each time you generate an application, you have to add modified templates to the Excluded files list to prevent them from overwriting.



Prev Return to chapter overview Next