Use this procedure to verify that you have the minimum environment sets selected for your
GRW for PHP configuration.
There are several environment sets needed for the GRW for PHP configuration. If you have
not modified the default selection provided by the PHP configuration during installation, these will
already be selected for you:
- Reporting Template (latest version)
- PHP
- Report Writer (latest version)
- Demo PHP Database Connection
- DB - SQLite
Use this procedure to verify that you have the correct environment sets selected. You will
likely need to alter the database-related environment sets for your environment, to use a database
other than the demo database.Tip: It is recommended that you make a copy of
database-specific environment sets, and alter the copy. This allows you to keep the original
database-specific environment sets for use with the demo programs.
-
In the Genero Configurations combobox, select PHP.
This combobox is located in the lower right-hand side of Genero Studio.
-
Select .
The Genero Configuration Management dialog opens.
-
At a minimum, select the following environment sets.
- Reporting Template (latest version)
-
Only required for programs generated by the Business Application Modeler (BAM).
This environment set includes the GSTSETUPDIR environment variable, which defines the directory
where the BAM templates reside. In environments where multiple templates reside, you can only have
one template path set.
- PHP
-
This environment set defines where the PHP software resides, and adds the path details to the
PATH environment variable.
- Report Writer (latest version)
-
In addition to setting GREDIR, this environment set ensures that all necessary library files are
made available. This includes all PHP libraries where the Genero Report Writer APIs are defined.
- Demo PHP Database Connection (or a copy thereof)
-
This environment set has three environment variables:
- PDO_DSN
- The database connection string.
- PDO_USER
- The user name to use for the connection.
- PDO_PASSWORD
- The password to use for the connection.
- Database environment
-
The environment set for the database must also be set, whether it be an IBM® Informix-specific set, an Oracle-specific set, and so on.
For the sample reporting application, check the DB-SQLite environment
set.
-
Click OK until all dialogs close.