Welcome Guest, Not a member yet? Register   Sign In
text before doctype
#1

(This post was last modified: 06-18-2015, 10:55 PM by cupboy.)

I do a view source and get this for the first 3 lines:

det<!DOCTYPE html>
<html>
<head>

Where might that word det be coming from? I've done some very thorough searching and cannot figure this one out. It's coming from the url though. That's all I know.

This is the url: http://localhost:8030/moab/pros/20150603/det

It has det at the end but that's fine. It belongs there.
Reply
#2

Check your controller for any "echo" statements before $this->load->view(...)
If your controller has a method like:
PHP Code:
public function pros($date,$s)

...


check for a line that says
PHP Code:
echo $s
Reply
#3

(This post was last modified: 06-18-2015, 11:38 PM by cupboy.)

I checked the controller. There are no echo or print statements in there.

UPDATE: You're right. There was an echo statement but it was in the model. Thanks!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB