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

[eluser]jzbruno[/eluser]
Hello,

I am new to Codeigniter and so far I am really enjoying it. I have ran into a problem though. When I load the pagination class it adds the following html to the top of my page.

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;

I have narrowed it down to putting nothing but the following in the controller and getting the above html.

Code:
function index() {
    $this->load->library('pagination');
}

Is this normal behavior? If so is there a way around it? Thanks.


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



Theme © iAndrew 2016 - Forum software by © MyBB