forked from pluf/demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
33 lines (30 loc) · 877 Bytes
/
index.php
File metadata and controls
33 lines (30 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
require 'vendor/autoload.php';
require 'Pluf.php';
Pluf::start('config.php');
/*
* Uncomment to install
*
* Init DB and create new tenant.
*/
ini_set('display_errors', 'on');
error_reporting(E_ALL);
// header('Content-Type: text/plain');
// try {
// $m = new Pluf_Migration(Pluf::f('installed_apps'));
// $m->install();
// $view = new SuperTenant_Views();
// $request = new Pluf_HTTP_Request('/');
// $request->tenant = new Pluf_Tenant(1);
// $request->REQUEST = array(
// 'title' => 'Main tenant',
// 'description' => 'Description of the main tenant',
// 'domain' => 'pluf.ir',
// 'subdomain' => 'www',
// 'validate' => true
// );
// $view->create($request, array());
// } catch (Exception $e) {
// var_export($e);
// }
Pluf_Dispatcher::dispatch(Pluf_HTTP_URL::getAction(), 'urls.php');