Welcome Guest, Not a member yet? Register   Sign In
[Closed] Codeigniter Will Not Load Default Route
#11

[eluser]riwakawd[/eluser]
[quote author="Tpojka" date="1397730156"]Check this great explained article.
You can see that router.php is called before application/core classes. Therefore default CodeIgniter installation still don't use MY_Router.php during initializing default route. I said that in post before.
[/quote]

Thanks. I no codeigniter default controller. Can only work $route['default_controller'] = "folder/controller";

It is annoying that can not put one more folder there. Can for other routes but not default one. Not good unhappy.

I have to get my developer to maybe see if he can create or modify something that can make it happen.

Thanks for help any way.
#12

[eluser]Tpojka[/eluser]
You can try to make redirectional controller to be sure that core controller shall invoke.

application/config/route.php
Code:
$route['default_controller'] = "redirect_controller";

and in application/controllers/redirect_controller.php

Code:
<?php if ( !defined('BASEPATH')) exit('No direct script access allowed!');

class Redirect_controller extends CI_Controller
{

public function __construct()
{
  parent::__construct();

                redirect('admin/admin_login/administrator', 'refresh');
                exit();
}
}

Also you can make some htaccess approach with redirection.

Disclaimer: not tested.




Theme © iAndrew 2016 - Forum software by © MyBB