This HOWTO describes the steps to take if you want to use your application out of the context of PHP GEN, so not from the output directory. There are different steps to follow for a 'Single Table' or 'Multiple Tables'.
In this section, we'll assume you have a working PHP GEN installation available in /home/www/htdocs/php_gen/. Also, we'll be working on a tables called 'product'.
/home/www/htdocs/php_gen/output/product/ to /home/www/htdocs/./home/www/htdocs/php_gen/common/ to /home/www/htdocs/product/config_all.php and change the value of $CFG_libdir to 'common/' (mind the trailing slash!)common/config.php and change the APP_DIR path, so it points to your application's path /home/www/htdocs/product/ (again, mind the trailing slash).templates_c/ and upload/ are writable by the webserver.Note: When you need to copy or edit files/directories, and a relative path is given, the directory /home/www/htdocs/product/ is assumed.
In this section, we'll assume you have a working PHP GEN installation available in /home/www/htdocs/php_gen/. Also, we'll be working on two tables called 'product' and 'category'.
/home/www/htdocs/php_gen/output/product/ and /home/www/htdocs/php_gen/output/category/ to where you need it, for example into /home/www/htdocs/my_app//home/www/htdocs/php_gen/common/ to /home/www/htdocs/my_app/product/config_all.php and category/config_all.php to change the value of $CFG_libdir to '../common/' (mind the trailing slash!)common/config.php and change the APP_DIR path, so it points to your application's path /home/www/htdocs/my_app/ (again, mind the trailing slash).product/templates_c/product/upload/category/templates_c/category/upload/Note: When you need to copy or edit files/directories, and a relative path is given, the directory /home/www/htdocs/my_app/ is assumed.
This HOWTO is based on a contribution by Gergo.