summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-09-02 00:44:19 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-09-19 21:41:30 +0200
commitc199a758635f04c193b812052186fe19366f4f2e (patch)
tree0f532cd19d01f6fa01630746b267d973e37a5ea7
parent250ceecea5b01c1421aa6142a7906c54841561c8 (diff)
Move file controller into subdir
This allows to more easily split the controller into smaller parts in the future. Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--application/config/routes.php6
-rw-r--r--application/controllers/file/file_default.php (renamed from application/controllers/file.php)2
2 files changed, 4 insertions, 4 deletions
diff --git a/application/config/routes.php b/application/config/routes.php
index 23c9bebee..9583ff37c 100644
--- a/application/config/routes.php
+++ b/application/config/routes.php
@@ -38,12 +38,12 @@
|
*/
-$route['default_controller'] = "file";
+$route['default_controller'] = "file/file_default";
$route['user/(:any)'] = "user/$1";
-$route['file/(:any)'] = "file/$1";
+$route['file/(:any)'] = "file/file_default/$1";
$route['tools/(:any)'] = "tools/$1";
$route['api/(:any)'] = "api/route/$1";
-$route['(:any)'] = "file/index/$1";
+$route['(:any)'] = "file/file_default/index/$1";
$route['404_override'] = '';
diff --git a/application/controllers/file.php b/application/controllers/file/file_default.php
index 7c7b5de2d..8d1f67636 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file/file_default.php
@@ -7,7 +7,7 @@
*
*/
-class File extends MY_Controller {
+class File_default extends MY_Controller {
function __construct()
{