CodeIgniter Forums

Full Version: Newbie Question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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?

El Forum

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.