Getting Started - page7/pt GitHub Wiki

Getting Started

1. Copy pt-framework in your project.

Copy class,common,conf,language folders and common.php into your project's folder.

2. Create folders.

Create log, template folders in the project (folders' name can be changed in config).
And set log folder writeable.

3. Create your first page

And coding this:

// session start
define("SESSION_ON", true);

// define project's config
define("CONFIG", '/conf/web.php');

// debug switch
define("DEBUG", true);

// include framework entrance file
include('./common.php');
4. If you want create a single entry project, you should to read route page.

Or not, keep reading datebase or template page.

⚠️ **GitHub.com Fallback** ⚠️