Welcome Guest, Not a member yet? Register   Sign In
Newbie Question
#1

[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?
#2

[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.




Theme © iAndrew 2016 - Forum software by © MyBB