Welcome Guest, Not a member yet? Register   Sign In
having problem creating a default controller
#3

[eluser]Ivar89[/eluser]
Default controller is defined in map config->routes.php
If your default controller is main it should look like thisSadroutes.php)
Code:
$route['default_controller'] = "main";
controller:
Code:
class main extends Controller
{
    function main()
    {
         parent::controller();
    }
        function index()
{
$this->load->view('main/index');
}


Messages In This Thread
having problem creating a default controller - by El Forum - 06-13-2010, 11:55 PM
having problem creating a default controller - by El Forum - 06-14-2010, 01:56 AM
having problem creating a default controller - by El Forum - 06-14-2010, 01:59 AM
having problem creating a default controller - by El Forum - 06-14-2010, 02:16 AM
having problem creating a default controller - by El Forum - 06-14-2010, 02:27 AM
having problem creating a default controller - by El Forum - 06-14-2010, 03:16 AM
having problem creating a default controller - by El Forum - 06-14-2010, 03:21 AM
having problem creating a default controller - by El Forum - 06-17-2010, 07:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB