Assign a Custom Global Pseudo Variable in Code Igniter
Posted
by Fábio Antunes
on Stack Overflow
See other posts from Stack Overflow
or by Fábio Antunes
Published on 2010-06-13T18:10:37Z
Indexed on
2010/06/13
18:12 UTC
Read the original article
Hit count: 413
Hello
As you probably all know Code Igniter can assign pseudo variables using the Parser library, but you also know that if we want to assign a Pseudo Variable to use it in a View, we have to do it in every do it in every controller that loads those views with the pseudo variables.
I would like to know if Code Igniter 1.7.2 has some way that i can assign a Global Pseudo variable (like the pseudo variables from the Benchmarking Class).
The pseudo variables i want, would have simple data mostly returned from the $config
array in the config.php
file.
If some could help me with that.
Regards.
© Stack Overflow or respective owner