[eluser]Jimster[/eluser]
Hello
I'm new to CI so this may be newbie headset problem.
I have two controller files
<b>home.php code</b>
<?php
class Home extends Controller {
function Home()
{
parent::Controller();
}
function index()
{
$data['title'] = 'NSBAUSA - Home';
$this->load->view('view_home', $data);
}
}
<b>nsba_login.php code</b>
<?php
class NSBA_Login extends Controller {
function NSBA_Login()
{
parent::Controller();
}
function index()
{
$data['title'] = 'NSBAUSA - Login';
$this->load->view('view_login', $data);
}
}
On the home page view I have a link to the login page.
When I launch the login link on the home page I get the following error.
<b>Fatal error: Class 'Controller' not found in C:\xampp\htdocs\NSBAUSA\application\controllers\NSBA_login.php on line 3</b>
What code do I have to change in the second controller file to make this work?
Can I have multiple controllers?
Am I making a bad assumption on implementing multiple controllers?
Thanks for the help
Jimster