01-11-2010, 09:07 AM
[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" >
<?php echo "gggg";
echo anchor('test/check' ,'new');
?>
</div>
</body>
</html>
when i click link , it shows
The requested URL /codeigniter/test/check was not found on this server. please help me .
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" >
<?php echo "gggg";
echo anchor('test/check' ,'new');
?>
</div>
</body>
</html>
when i click link , it shows
The requested URL /codeigniter/test/check was not found on this server. please help me .