- Put all files of this repository into a directory below your web root.
- Install the Ptf framework into an arbitrary directory. The best place is inside the demo application's directory.
- Change the path to the Ptf installation in src/Application.php, if necessary.
- Create a MySQL/MariaDB database (e.g. "ptf_demo") and import the DB dump from sql/demo.sql.
- Copy or rename the config.ini.php.example file to config.ini.php.
- Adjust the database parameters and the database driver to use (PDO_MySQL or MySQLi) in config.ini.php.
- Make sure that the var/ directory is writable for the webserver user.
- If you like, you may configure the application to use Smarty as its template engine in src/App/Context.php. You can also configure your preferred Session storage method here (Memcached, file system or default PHP session handling).
- Run
bin/compile_inis.php
on the command line to generate the configuration classes from the INI file settings.
Now use your webbrowser to point to the application's URL and the demo application should be loaded.
- Use
bin/compile_inis.php
to generate Config classes into the src/App/Config/ directory after changing any setting in the INI file. - Use
bin/clear_cache.sh
to delete the cache generated by the autoloader as well as the Smarty cache and compiled templates (if you prefer to use the Smarty view instead of the Plain view).