• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.