Generate Settings

 

Template file Template archive (zip file)
Project folder

The folder where the PHP scripts are to be generated.

Note The old setting Application Root has been deprecated and is converted to the advanced setting Web root relative path, see Tools -> Advanced Settings for details.
Output filename None - no prefix/infix/suffix is added
Prefix - a prefix is added to all output file names
Infix - an infix (between table name and page ID) is added to all table-specific file names
Suffix - a suffix is added to all output file names
Prefix/Infix/Suffix The string to be concatenated to output file names when the Prefix or Infix or Suffix option is specified
Lowercase Specify whether output file names are in lowercase
Start page

Specify the first page that the default page (index.php) should redirect users to.

If this setting is left blank, user will be redirected to the List page of the default table (see Table Setup) or the first table that the user have permission to access.

If this setting is not blank, the index page will simply redirect user to the page you specify, e.g. a page not generated by the current project or a custom file.

Note If you start the site by the typical index.php, leave this setting blank, do NOT enter index.php or there will be a indefinite loop.
Composer update

Specify whether to call composer update after generation. By default PHPMaker will call it automatically when necessary, but sometimes you may want to call it explicitly by checking this option.

If you are not familiar with Composer, read System Requirements first.

Testing web server

Specify the web server that you want to use to test the generated site. For use with Browse after generation (see below). You can choose PHP (built-in web server) or Other. Requires PHP >= 5.6 and php.exe installed on the same machine as PHPMaker.

The PHP built-in web server was designed to aid application development, read the PHP manual for more information. PHPMaker will try to find the php.exe on your machine, but you can also specify it and the web server port in advanced settings. If enabled, PHPMaker will run the web server at the Project folder, e.g.

"C:\Program Files (x86)\PHP\php.exe" -S localhost:<port>

If you choose Other web server (e.g. if you use IIS or Apache), you need to specify Testing root URL (see below) also.

Browse after generation Specify whether to open a browser to test the generated site after script generation.
Testing root URL Specify the URL of your testing site that maps to the Project folder (see above). For use with Browse after generation. If you use PHP, this setting is NOT required.

After setting above, click the [Generate] button to generate scripts. PHPMaker allows you select scripts to generate, just select the files you want to generate in the [Output] column. If you want include PHPMaker scripts into your custom PHP scripts, you may not want to generate header and footer in those pages. Then you can enable [No header/footer] for those pages. Note that header/footer means the header row containing the site header logo and the footer row containing the site footer text.

After selection, click the [Generate] button to generate scripts.

If you modify settings for a table and want to re-generate script for that table only, you can click [Unselect All], then select the files you want to re-generate and click the [Generate] button to generate again. If you are not sure which files to re-generate, click [Select All] and re-generate all files.

You can also right-click the column header of [Output] or [No header/footer] to quickly select all or unselect all items in the column.

Notes

  1. If it is your first generation or you have changed some project level settings, you must select [Other files] to generate the non table-specific pages.
  2. You can press F9 to skip above form and generate all scripts.
  3. You can press Ctrl + F9 to skip above form and re-generate previously selected scripts.

If you need to abort script generation in the middle of the process, click the [Cancel] button under the progress bar that displayed during generation.

 

Also See

Customizing Template
Project File

 

 ©2002-2019 e.World Technology Ltd. All rights reserved.