Welcome Guest, Not a member yet? Register   Sign In
controller function dont load
#1

[eluser]mehdy[/eluser]
my controller fuction is now working . but my index load perfectly.
config.php
$config['base_url'] = "http://localhost/codeigniter/";
$config['index_page'] = "";
route.php
$route['default_controller'] = "test";

my controller text.php
<?php


class Test extends Controller {

function Test()
{

parent::controller();
}

function index ()
{

echo $this->load->view('test');

}

function check (){

echo "ee";
}

}

my view file text.php

<html>
<head>
<title></title>
<meta http-equiv = "Content-Type" content = "text/html ; charset =UTF-8" >
</head>
<body>
<div id ="container" >

&lt;?php echo "gggg";

echo anchor('test/check' ,'new');

?&gt;
</div>
&lt;/body&gt;
&lt;/html&gt;


when i click link , it shows

The requested URL /codeigniter/test/check was not found on this server. please help me .


Messages In This Thread
controller function dont load - by El Forum - 01-11-2010, 09:07 AM
controller function dont load - by El Forum - 01-11-2010, 09:27 AM
controller function dont load - by El Forum - 01-11-2010, 11:37 PM
controller function dont load - by El Forum - 01-11-2010, 11:57 PM
controller function dont load - by El Forum - 01-12-2010, 12:08 AM
controller function dont load - by El Forum - 01-12-2010, 01:00 AM
controller function dont load - by El Forum - 01-12-2010, 01:04 AM
controller function dont load - by El Forum - 01-12-2010, 03:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB