Welcome Guest, Not a member yet? Register   Sign In
“404 Page Not Found” errors.
#1

[eluser]Unknown[/eluser]
I am new in CI. Don’t understand what is wrong in my code. I am getting “404 Page Not Found” errors.

My Config file is as bellow.

[controller > pri.php]
<?php
class Pri extends Controller {
function Pri()
{
parent::Controller();
}
function index()
{
$this->load->view('view_primary');
}
function pc()
{
$this->load->view('view_ex');
}
}
?>

[views > view_ex.php]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;html &gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;

[config > config.php]
$config['base_url'] = "http://www.xyz.us/";
$config['index_page'] = "index.php";

[Config > routes.php]
$route['default_controller'] = "pri";
$route['scaffolding_trigger'] = "";

But It always return CI 404 error from my given URL: http://www.xyz.us/index.php/pri/pc/

Plz help ....


Messages In This Thread
“404 Page Not Found” errors. - by El Forum - 09-07-2009, 10:54 AM
“404 Page Not Found” errors. - by El Forum - 09-07-2009, 11:12 AM
“404 Page Not Found” errors. - by El Forum - 09-07-2009, 11:15 AM
“404 Page Not Found” errors. - by El Forum - 09-07-2009, 11:25 AM
“404 Page Not Found” errors. - by El Forum - 09-07-2009, 04:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB