-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
24 lines (17 loc) · 863 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
require_once "Ionian/init.php";
use Ionian\App;
//Create an Application
$app = new App\Rapid(App\App::APP_MODE_DEV);
//You can create multiple DB instances. This however initializes the DEFAULT instance.
$app->initDatabase("mysql", "127.0.0.1", "jamwie", "root", "", [PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, PDO::ATTR_EMULATE_PREPARES => false]);
//By default we include the framework built-in error handler. You can include your own by using this command!
//$app->setErrorHandler(new \Project\Handlers\CustomErrorHandler());
//Run the application
$app->run();
/*
$app = new App\Defined(App\App::APP_MODE_DEV);
$app->initDatabase("mysql", "127.0.0.1", "test", "root", "", [PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, PDO::ATTR_EMULATE_PREPARES => false]);
$app->get('/test1', "DependencySampleController@test3Action");
$app->run();
*/