Compatibility Properties Setup

Compatibility Properties are used to make the generated scripts work with an existing PHPMaker application.

If your PHP application generated by PHP Report Maker is standalone, that is, resides in a separate folder from other PHP applications, there is no need to set these properties.

However, if you mix the generated scripts with another PHPMaker application in the same folder, the generated login, logout and index pages may overwrite the same pages for the existing PHPMaker application because these file names may have the same file names.

If the Compatibility Properties are enabled, during script generation, the login, logout and index pages can be skipped so they won't overwrite existing files.

Set up the Compatibility Properties Automatically (Requires PHPMaker 2019)

Compatibility with PHPMaker 2019 project can be set up easily in the PHPMaker project. PHPMaker can load the PHP Report Maker project, set up the compatibility properties automatically and load the menu items from the PHP Report Maker project to the PHPMaker project. Since PHPMaker will update your PHP Report Maker project, to avoid overwriting each other, you should save your PHP Report Maker project and close PHP Report Maker first. Then in PHPMaker, open the Menu Editor, click the [Import] button in the toolbar,

Note: This is menu editor in PHPMaker.

Select your PHP Report Maker 12 project, click [OK]. The imported menu items will be represented by orange icons, you can then re-arrange the display order of the menu items if necessary.

If you re-open the PHP Report Maker project in PHP Report Maker, click [Tools] -> [Compatibility Properties] and you'll see that the compatibility properties has been setup.

Note If you change User Level settings in your PHP Report Maker project later, the imported menu items in the PHPMaker project will NOT be updated automatically, you'll need to repeat above again.

 

Set up the Compatibility Properties Manually

Click [Tools] -> [Compatibility Properties], the following form will show up:

Properties:

Project Name

Specifies the project name of the project.

Project name is generally used in session variable names to distinguish projects. To make your PHP Report Maker project works with PHPMaker, you must use the same project name.

Normally, the project name is the same as the project file name, but there are cases that the project name is different, it is therefore recommended that you check the project name of the PHPMaker project first (see Project File), then you enter the same project name to PHPMaker. Since project name is used in session variable names, it is case-sensitive.

Note If you save the project as the another file name using [Save As...], the project name will still be changed accordingly. If you want to keep the project name unchanged, use [Save a Copy...]. (See Project File)
Enable compatibility properties

Check this to enable compatibility properties.

Header (include file)

Specifies the path of the header include file, usually "header.php" generated by PHPMaker.

When enabled, the path you enter will be used in the generated script as follows:

<?php include_once "your header path"; ?>

Footer (include file)

Specifies the path of the footer include file, usually "footer.php" generated by PHPMaker.

When enabled, the path you enter will be used in the generated script as follows:

<?php include_once "your footer path"; ?>

 

 

 

Also See:

Tutorial - Compatibility Properties - Integrating with existing PHPMaker project

 

 

 

 ©2007-2018 e.World Technology Ltd. All rights reserved.