php - Assign a custom global pseudo variable in Code Igniter like {elapsed_time} -


Hello

As you probably know, code igniter pseudo You can specify the variable by using the parser library, but you also know that if we want to assign a pseudo variable to use it in a single view, then we have to do it in each controller, which will convert those sequences to the pseudo-variable Loads with.

I would like to know that if there is any way of Code Igniter 1.7.2 , then I can assign to a global pseudo variable (like a pseudo variable from the benchmarking class) .

The pseudo variable I want, the normal data will be returned from the $ config array to the config.php file.

If someone can help me

Regards.

I looked at the source code for benchmarking and output classes.

These variables are specially replaced by the output class, so without modifying it or spreading it (if you are bound to use a template parser, or sticking to the normal PHP method If you are actually setting this to happen, you can write a library and use a hook to find / replace before the output class ends.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -