text before doctype - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: text before doctype (/showthread.php?tid=62205) |
text before doctype - cupboy - 06-18-2015 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. RE: text before doctype - Wouter60 - 06-18-2015 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; RE: text before doctype - cupboy - 06-18-2015 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! |