Giter VIP home page Giter VIP logo

ptf_demo's Introduction

Demo application for Ptf

Installation

  1. Put all files of this repository into a directory below your web root.
  2. Install the Ptf framework into an arbitrary directory. The best place is inside the demo application's directory.

Configuration

  1. Change the path to the Ptf installation in src/Application.php, if necessary.
  2. Create a MySQL/MariaDB database (e.g. "ptf_demo") and import the DB dump from sql/demo.sql.
  3. Copy or rename the config.ini.php.example file to config.ini.php.
  4. Adjust the database parameters and the database driver to use (PDO_MySQL or MySQLi) in config.ini.php.
  5. Make sure that the var/ directory is writable for the webserver user.
  6. 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).
  7. 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.

CLI scripts

  • 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).

ptf_demo's People

Contributors

tiger42 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.