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

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

det<!DOCTYPE html>

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.

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

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!

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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