[eluser]Squabbler[/eluser]
Hello,
I'm having a really awkward problem with any view/section other than the MAIN INDEX going into quirks mode. I've done a few tests and one in particular gave me results to where I have no idea what to check anymore.
I basically stripped my main/main_index view down to this:
Code:
<p>Main Index View</p>
I then stripped my about/about_index view to something similar:
Code:
<p>About Index View</p>
Both of these views use the same "header/footer" view named application:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?=$page_title;?></title>
<!-- CSS -->
<link rel="stylesheet" type="text/css" media="screen, projection" href="system/application/assets/includes/css/main.css" />
<!-- End CSS -->
</head>
<body>
<?php echo $content; ?>
</body>
</html>
My folder structure is set up as follows:
Code:
applications
|_ controllers
|_ main.php
|_ about.php
|_ views
|_ main
|_ main_index.php
|_ main_login.php
|_ about
|_ about_index.php
|_ about_resume.php
My config.php file is set up to load the main controller by default which loads the main_index.php view by default..
For an example of how my controllers are set up:
Code:
<?php
class Main extends Controller {
function index() {
$viewData['example_variable'] = "blah";
// Load the main_index view
$data['content'] = $this->load->view('main/main_index', $viewData, true);
// Set some page variables
$data['page_title'] = "Home Page, Son!";
// Load the header / footer..
$this->load->view('application', $data);
}
}
?>
And now for some weird reason, main_index is in standards compliant mode, but about_index is in quirks mode..
Any ideas?
Edit ::::
After more testing, it only seems to be happening in FireFox.. I have version 3.6.8