Welcome Guest, Not a member yet? Register   Sign In
not sure why my controller is getting called
#1

[eluser]codeigniterzzz[/eluser]
Here is my route for the controller:

Code:
$route['gotopage'] = 'general/gotopage';

The controller file is located here:

application/controllers/general/gotopage.php

Here is the code in the controller file:

Code:
<?php

if (!defined('BASEPATH'))  
    exit('No direct script access allowed');

class Gotopage extends CI_Controller
{  
    public function __construct()  
    {  
        parent::__construct();  
    }
    
    public function index()
    {  
        this->load->view('index');  
    }
}
?>

for some reason codeigniter is throwing the 404 page not found error.

I have no idea what I'm doing wrong...


Messages In This Thread
not sure why my controller is getting called - by El Forum - 10-14-2012, 07:58 PM
not sure why my controller is getting called - by El Forum - 10-14-2012, 08:11 PM
not sure why my controller is getting called - by El Forum - 10-14-2012, 08:14 PM
not sure why my controller is getting called - by El Forum - 10-14-2012, 08:28 PM
not sure why my controller is getting called - by El Forum - 10-14-2012, 08:46 PM
not sure why my controller is getting called - by El Forum - 10-16-2012, 01:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB