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

[eluser]ann91[/eluser]
hello....
i have a problem with this code..

<?
class cars extends Controller{

function cars()
{
parent::Controller();
}

function main(){
$this->load->view('cars_main');
}

function input(){
$this->load->view('cars_input');
}
}
?>

when I run it in a web browser, an error occurs like this
Class'Controller' not found in C: \ xampp \ htdocs \ framework \ system \ application \ controllers \ cars.php on line 3

there is a problem with the code above?
#2

[eluser]xerobytez[/eluser]
What version of CI are you using?
#3

[eluser]Phil Sturgeon[/eluser]
Are you doing this in CodeIgniter 2.0?

Controller was renamed to CI_Controller as noted in the upgrade guide in the documentation.
#4

[eluser]ann91[/eluser]
I use version CI 2.0
thank you about your informantion..




Theme © iAndrew 2016 - Forum software by © MyBB