CodeIgniter Forums
Replicating an include page - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Replicating an include page (/showthread.php?tid=19598)



Replicating an include page - El Forum - 06-12-2009

[eluser]rossmurphy[/eluser]
I have a controller that gets data from models then displays in view. I am trying to replicate a debug function that displays debug information if a user has toggle the function on. This true or false value is sent in the uri as toggleDebug=true.

How would, and where would i create the debug page so that it can be simple included in the controller (or not) depending on whether the user has set this to true or false?


Replicating an include page - El Forum - 06-12-2009

[eluser]TheFuzzy0ne[/eluser]
Have a look at the profiler class for inspiration, since it adds useful information to the bottom of the page automatically when activated.