[eluser]Unknown[/eluser]
Hi,
I am new to codeigniter, i am getting this error to run simple codeigniter example.
Fatal error: Class blog: Cannot inherit from undefined class controller in C:\ns\www\ci\system\application\controllers\blog.php on line 2
right now I just want to use blog.php class
<?php
class Blog extends Controller {
function index()
{
echo 'Hello World!';
}
}
?>
and i have index.php file
<? require("../system/application/controllers/blog.php"); ?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
</body>
</html>
I will be thankful if someone help me.
Thanks
HF