Not able to disable debug bar |
I'm trying to return a view as json, so looking to other post on this forum I discovered this thread.
So I followed the comment of cyberstunts and tried: PHP Code: if ($this->request->isAJAX()) { but CodeIgniter didn'd disabled the debug bug even specifying the content type as application/json... Infact, in the response I get: PHP Code: <!-- DEBUG-VIEW START 1 APPPATH/Views/Frontend/Search/item.php --> and in the json response this error is raised: PHP Code: SyntaxError: Unexpected token < in JSON at position 0 PHP Code: CI_DEBUG = false; What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |