Welcome Guest, Not a member yet? Register   Sign In
CI and Quirks Mode
#1

[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">
&lt;html lang="en"&gt;

&lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
  &lt;title&gt;&lt;?=$page_title;?&gt;&lt;/title&gt;

  &lt;!-- CSS --&gt;
  &lt;link rel="stylesheet" type="text/css" media="screen, projection" href="system/application/assets/includes/css/main.css" /&gt;
  &lt;!-- End CSS --&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;?php echo $content; ?&gt;

&lt;/body&gt;
&lt;/html&gt;

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:
&lt;?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);

  }  

}
?&gt;

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


Messages In This Thread
CI and Quirks Mode - by El Forum - 10-28-2010, 03:13 PM
CI and Quirks Mode - by El Forum - 10-29-2010, 09:46 AM
CI and Quirks Mode - by El Forum - 10-29-2010, 09:55 AM
CI and Quirks Mode - by El Forum - 10-29-2010, 09:57 AM
CI and Quirks Mode - by El Forum - 10-29-2010, 03:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB