[eluser]Kyle Ellman[/eluser]
Here is the base controller my_controller.php
Code:
<?php
class MY_Controller extends Controller
{
function __construct()
{
parent::Controller();
//redirect('');
}
}
And here is the controller that extends MY_Controller, media.php
Code:
<?php
class Media extends MY_controller {
function __construct()
{
parent::__construct();
$this->load->helper('form');
$this->load->helper('url');
}
function index()
{
$this->load->view('welcome');
}
function show()
{
$this->load->view('media_list');
}
function add()
{
$this->load->view('media_add');
}
}
If I uncomment the redirect(''); line, I don't get an actual error, just the blank browser screen you get as a result of syntax errors, but I'm pretty sure that it's not a syntax error.
NOTE: It's always redirecting for now because I haven't coded the authentication portions yet.