Welcome Guest, Not a member yet? Register   Sign In
How to troubleshoot code in a model?
#3

[eluser]Otemu[/eluser]
Hi,

You can echo anywhere within Codeigniter, so if you want to echo in the controller or model go ahead, after you solved the issue then you can remove the echo.

I find the Profiler handy, put this in your conroller $this->output->enable_profiler(TRUE); this will show a report at the bottom of your page which includes:

Elapsed time of Benchmark points and total execution time
CodeIgniter Config variables
The Controller class and method requested
Any GET data passed in the request
The HTTP headers for the current request
Amount of memory consumed by the current request, in bytes
POST data passed in the request
Listing of all database queries executed, including execution time
The URI of the current request
The number of queries after which the query block will default to hidden.


Messages In This Thread
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 12:27 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 01:39 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 02:47 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 03:01 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 03:06 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 03:21 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 03:53 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 04:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB