Welcome Guest, Not a member yet? Register   Sign In
[solved] Why is the Pagination class adding a doctype to my page?
#6

[eluser]jzbruno[/eluser]
Thanks for giving it a try. This is very weird, I even started digging through the CodeIgniter source with no luck. I created the following controller.

Code:
<?php

class PaginationTest extends Controller {

    function index() {
        
        $this->load->library('pagination');
        $this->load->view('pagination_test_view');
    }
}

And this view.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
&lt;html &gt;
&lt;head&gt;
    &lt;title&gt;Pagination Test&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
    <h1>Pagination Test</h1>
&lt;/body&gt;
&lt;/html&gt;

With this output (viewing source in Firefox).

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;html &gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
&lt;html &gt;
&lt;head&gt;
    &lt;title&gt;Pagination Test&lt;/title&gt;

&lt;/head&gt;

&lt;body&gt;
    <h1>Pagination Test</h1>
&lt;/body&gt;
&lt;/html&gt;

I am using CodeIgniter 1.7.2 from the site download.


Messages In This Thread
[solved] Why is the Pagination class adding a doctype to my page? - by El Forum - 02-11-2010, 11:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB