EllisLab text mark
Advanced Search
     
CI displays “0” in the web
Posted: 30 September 2012 03:59 PM   [ Ignore ]
Joined: 2012-09-30
1 posts

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:

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 loadedurl_helper
DEBUG 
2012-09-29 11:35:52 --> Helper loadedform_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 loadedstring_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 loadedapplication/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 time0.1317 

here, you can see the “0”:

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


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

 

 
Posted: 30 September 2012 09:37 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2009-05-17
1415 posts

Does it happen on all pages or just some?

 Signature 

Brian
Brian’s Web Design - Temecula
Community Auth - CodeIgniter Authentication Application

 
Posted: 01 October 2012 01:42 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2012-10-01
1 posts

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 http://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

<?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

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

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