Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8420913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:59:31+00:00 2026-06-10T02:59:31+00:00

In the default Codeigniter installation there is the welcome controller which has a index

  • 0

In the default Codeigniter installation there is the “welcome” controller which has a “index” action which loads the “welcome” view. This works as expected.

However, upon inspecting the “welcome” view I can see this variable in the footer.

<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds</p>

From what I understand the variable {elapsed_time} is an example of using the built in template parser with text representations instead of using PHP short tags to echo variables.

But inside the “welcome” controller the only lines in the “index” action are these.

$this->load->view('welcome');

And it doesn’t pass $data['elapsed_time']='xxx'; which means that I can’t figure out where the variable elapsed_time is coming from!

My question is this.

Where does elapsed_time get defined? Is it built into the template parser class (and therefore available to be used without first defining it)? If so, where is a list of these other pre-defined varaibles? I would like to know what else I have access to as had I known that elapsed_time was available to me it would have been very useful. Does anyone have a list of the template parser pre-defined variables?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:59:33+00:00Added an answer on June 10, 2026 at 2:59 am

    elapsed_time defined output class. this class is initialized automatically by CodeIgniter.

    more info here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to work with CodeIgniter these days. By default it has the index.php
By default, the ordered list looks like this: There are some spacing on the
I am using the default Codeigniter page cache e.g.: $this->output->cache(n); My problem is that
Ive started a codeigniter site. my default controller is $route['default_controller'] = login; in routes.php
Installing Sparks assumes that you are abiding by the default CodeIgniter installation pattern; extracting
using CodeIgniter normally one has to specify the controllers in the config/routes.php file. This
The CodeIgniter has a very simple default error 404 message: 404 Page Not Found
This issue is very likely codeigniter specific. I have a controller called redirect.php that
Iam using default settings for tank_auth installation. When I tried following statement in controller:
In config.php $config['base_url'] = 'http://localhost/codeigniter/'; In View <link rel=stylesheet href=<?php base_url(); ?>css/default.css type=text/css />

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.