[ PHP ] – Codeigniter – Profilling

Assalamualikum.. apa sih profilling yang ada di codeigniter, coba kita tengok di web resminya di : Disini,

The Profiler Class will display benchmark results, queries you have run, and $_POST data at the bottom of your pages. This information can be useful during development in order to help with debugging and optimization.

Important:  This class does NOT need to be initialized. It is loaded automatically by the Output Class if profiling is enabled as shown below.”

Nah perintahnya adalah :

$this->output->enable_profiler(TRUE);

Taruh di paling bawah script controller,

profilling ini saya gunakan untuk melakukan debugging error untuk query seperti gambar dibawah ini :

peserta

Sekian dan terima kasih

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s