Here's the issue :
If I call www.mysite.com/quizz, it loads my 'quizz' page.
But if I call www.mysite.com/quizz/start (containing the same code), the view is messed up because of broken links (images, css, ...)
Here is the content :
public function index()
{
$this->load->helper('quizzsettings');
$data['questions'] = getSettings();
$this->load->view('head');
$this->load->view('quizz', $data);
}
If I call another function (www.mysite.com/quizz/start), the layout fails :
public function start()
{
$this->load->helper('quizzsettings');
$data['questions'] = getSettings();
$this->load->view('head');
$this->load->view('quizz', $data);
}
As you know, CodeIgniter reads the URL like www.mysite.com/class/method, so it should be good, right?