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

Subscribe to our news:
Partners
Testimonials
Anley Lafleur: "I cannot wait to start using your exciting product and I am sure it will help me achieve my objectives".
Simon Greener: "A lot of work went in to designing our application database. PHP Generator allowed us to build a fully functional, professional looking, and functionally powerful web application from that database. It has freed us from worrying about low level code, enabling us to focus on the business requirements of the customer. The support provided is excellent with staff quickly producing answers to questions ranging from newbie to simple or complex. I highly recommend the product".

More

Add your opinion

PostgreSQL PHP Generator online Help

Prev Return to chapter overview Next

OnCustomHTMLHeader

This event occurs when generating the HEAD section of the page. It allows you to define the contents of the HEAD section (like meta tags or favicon) for all pages of the generated website.

 

Signature:

function OnCustomHTMLHeader ($page, &$customHTMLHeaderText)

 

Parameters:

$page

An instance of the Page class declared in components/page.php.

$customHtmlHeaderText

The text block to be added to the head section of all created pages.

 

Example 1:

To add a new title and a favicon to all webpages of the generated application, place the following code to the event body.

 

$customHtmlHeaderText = '<meta name="author" content="SQL Maestro Group">';

$customHtmlHeaderText .= "\n";

$customHtmlHeaderText .= '<meta name="copyright" content="SQL Maestro Group" />';

$customHtmlHeaderText .= "\n";

$customHtmlHeaderText .= '<meta name="keywords" content="nba,basketball,game">';

$customHtmlHeaderText .= "\n";

$customHtmlHeaderText .= '<link rel="icon" href="favicon.ico" type="image/x-icon" />';

 

Example 2:

The following code is used to include external style file and javascript library to the generated application.

 

$customHtmlHeaderText = 

  '<link rel="stylesheet" href="external_data/pg_styles.css">' .

  '<script src="external_data/pg_utils.js"></script>';

 



Prev Return to chapter overview Next