CodeIgniter Forums
Newbie Question - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter Archived (from EllisLab) (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Newbie Question (/thread-22800.html)



Newbie Question - El Forum - 09-20-2009

[eluser]navetz[/eluser]
In the welcome_message.php view file there is this line:

<p><br />Page rendered in {elapsed_time} seconds</p>

Where does {elapsed_time} come from? I thought by default code igniter didn't load the template class. If it does I suppose elapsed_time comes from the benchmarking class.

Does that mean that both of these are loaded or are only loaded when called? Where are the classes loaded and how can you set things like this to happen for your own needs?


Newbie Question - El Forum - 09-20-2009

[eluser]bretticus[/eluser]
It's not part of the template parsing class. It does come with the Benchmark class, but the replace is performed in the Output class. Both the benchmark and output classes are loaded automatically. The template class is not. See the manual for details.