-
Notifications
You must be signed in to change notification settings - Fork 1
/
routes.php
38 lines (33 loc) · 1.44 KB
/
routes.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php if(!defined('APP_HOST')) die('Access restricted.');
/**
* This file is used to define magic paths in your Application
* Define a key => value pair to map a path to different module, controller & action
*
* @filename routes.php
* @copyright Fork PHP
* @license
* @access public
* @author Eshant Sahu
* @see http://forkphp.com/document
*/
$router = array();
/* Add your paths here */
//$router['login.html'] = "admin/login/index";
//$router['/module'] = "/admin/home/modulemanager";
//$route["admin/{:action}/{id:num}"] = "default/admin/{:action}/id/{id:num}";
$router["/home"] = "/default/index/index";
$router["/document"] = "/default/index/class";
$router["/contact"] = "/default/index/contact";
$router["/tutorials"] = "/default/index/tutorials";
$router["/download"] = "/default/index/download";
$router["/admin/db/{dbname:str}"] = "/admin/entity/dbmanager?db={dbname:str}";
//$router["admin/entity/dbmanager?db={db:str}&table={table:str}"] = "admin/db/{db:str}/table/{table:str}";
$router["/admin/db/{db:str}/table/{table:str}"] = "/admin/entity/dbmanager?db={db:str}&table={table:str}";
$router["/document/class/{classname:str}"] = "/default/index/class/classname/{classname:str}";
$router["/appi/{route:str}"] = "/api/index";
/**
* This array will be returned to the router Object, to map magic paths.
* you will be needed to enable it in ypur application.config before using them.
*
*/
return $router;