Welcome Guest, Not a member yet? Register   Sign In
CI displays "0" in the web
#1

[eluser]Unknown[/eluser]
hi there, i have this problem:

when CI loads my page also load a "0" (zero) before everything and i don't know why is doing that, i start recording error logs but don't tell me nothing about it:


Code:
DEBUG - 2012-09-29 11:35:52 --> Config Class Initialized
DEBUG - 2012-09-29 11:35:52 --> Hooks Class Initialized
DEBUG - 2012-09-29 11:35:52 --> Utf8 Class Initialized
DEBUG - 2012-09-29 11:35:52 --> UTF-8 Support Enabled
DEBUG - 2012-09-29 11:35:52 --> URI Class Initialized
DEBUG - 2012-09-29 11:35:52 --> Router Class Initialized
DEBUG - 2012-09-29 11:35:52 --> No URI present. Default controller set.
DEBUG - 2012-09-29 11:35:52 --> Output Class Initialized
DEBUG - 2012-09-29 11:35:52 --> Security Class Initialized
DEBUG - 2012-09-29 11:35:52 --> Input Class Initialized
DEBUG - 2012-09-29 11:35:52 --> XSS Filtering completed
DEBUG - 2012-09-29 11:35:52 --> Global POST and COOKIE data sanitized
DEBUG - 2012-09-29 11:35:52 --> Language Class Initialized
DEBUG - 2012-09-29 11:35:52 --> Loader Class Initialized
DEBUG - 2012-09-29 11:35:52 --> Helper loaded: url_helper
DEBUG - 2012-09-29 11:35:52 --> Helper loaded: form_helper
DEBUG - 2012-09-29 11:35:52 --> Database Driver Class Initialized
DEBUG - 2012-09-29 11:35:52 --> Session Class Initialized
DEBUG - 2012-09-29 11:35:52 --> Helper loaded: string_helper
DEBUG - 2012-09-29 11:35:52 --> Session routines successfully run
DEBUG - 2012-09-29 11:35:52 --> Model Class Initialized
DEBUG - 2012-09-29 11:35:52 --> Model Class Initialized
DEBUG - 2012-09-29 11:35:52 --> Model Class Initialized
DEBUG - 2012-09-29 11:35:52 --> Controller Class Initialized
DEBUG - 2012-09-29 11:35:52 --> File loaded: application/views/index_view.php
DEBUG - 2012-09-29 11:35:52 --> Final output sent to browser
DEBUG - 2012-09-29 11:35:52 --> Total execution time: 0.1317

here, you can see the "0":

Code:
[b]0[/b]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
&lt;html xml:lang="en"&gt;
&lt;head&gt;


anyone have and idea of what is going on? this value doesn't shows up before, it just appears suddenly, no matter what page i see it appears.

i don't move anything from the "index.php" in the root folder


thanks!

victor
#2

[eluser]skunkbad[/eluser]
Does it happen on all pages or just some?
#3

[eluser]Unknown[/eluser]
Maybe i discovered something similar to this - I tried to use HTML Kickstart for my front-views.

Here is what i did:

Downloaded fresh CI Package

Downloaded fresh HTML Kickstart on www.99lime.com

Setup Static Pages Tutorial from ci.com

it seems that codeigniter is producing some text between views wenn you use it like
Code:
&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Content extends CI_Controller {

public function index($group='home', $page = 'index')
{
$data['titel']='Inhalte';

if ( ! file_exists('application/views/content/'.$group.'/'.$page.'.php'))
{
  // Whoops, we don't have a page for that!
  show_404();
}
  $this->load->view('header', $data);
  $this->load->view('content/'.$group.'/'.$page, $data);
  $this->load->view('footer');
}
}

in Firefox Code View there seems to be nothing but if i copy the source to Notepad++ it looks like this

Code:
<!DOCTYPE html>
&lt;html&gt;&lt;head>
&lt;title&gt;HTML KickStart&lt;/title&gt;
&lt;meta charset="UTF-8"&gt;
&lt;meta name="description" content="" /&gt;
[removed][removed]
&lt;!--[if lt IE 9]>[removed][removed]<![endif]--&gt;
[removed][removed]                                   &lt;!-- PRETTIFY --&gt;
[removed][removed]                                  &lt;!-- KICKSTART --&gt;
&lt;link rel="stylesheet" type="text/css" href="css/kickstart.css" media="all" /&gt;                  &lt;!-- KICKSTART --&gt;
&lt;link rel="stylesheet" type="text/css" href="style.css" media="all" /&gt;
&lt;/head&gt;
&lt;body&gt;
test?test?
&lt;/body&gt;
&lt;/html&gt;

where it should say testtest it shows test?test?

its not a major think but it seems to break some floats and margins on my page

Greetz
Ape




Theme © iAndrew 2016 - Forum software by © MyBB