• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
text before doctype

#1
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
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.