Skip to content

Getting Started

Eelis Lynne edited this page Feb 9, 2019 · 1 revision

Getting started with The Key is super easy! Just clone/download the repo and set the document-root of your web server to where you placed the downloaded files.

To create new paths, just use the Route::set method in lib/Routes.php file.

For database, you need to set your username, password and database name in the index.php file. The settings are at the bottom. You can access the database with the DB class. We use the MeekroDB library, you can find documentation for it here. You can also use our model system by placing files in the Models folders and extending from BaseModel in the App\Models namespace.

We use the Blade templating engine for views. Inside the Routes.php file you can use View::Open method to read and show a file. To activate the templating engine, please name your file like filename.blade.php, otherwise the file will not use Blade and will be rendered like a normal PHP file.

Clone this wiki locally