{elapsed_time} |
[eluser]Nateisonfire[/eluser]
I'm not sure if it's a bug, or just me being me :p But how does this thing work? It is by itself on the welcome_message view file, but whenever I put it into my blog for example, it just shows up as {elapsed_time} and not the number itself. What could be causing this? Is there something in the controller that I am missing?
[eluser]Thorpe Obazee[/eluser]
{elapsed_time} is just some string that is replaced (str_replace) by the Output Class wherever it is in the output. There's really no magic to it. Code: $output = str_replace('{elapsed_time}', $elapsed, $output); Make sure you have {elapsed_time} and not something else.
[eluser]Nateisonfire[/eluser]
[quote author="PDP" date="1273579581"]{elapsed_time} is just some string that is replaced (str_replace) by the Output Class wherever it is in the output. There's really no magic to it. Code: $output = str_replace('{elapsed_time}', $elapsed, $output); Make sure you have {elapsed_time} and not something else.[/quote] I have {elapsed_time} exactly... but it doesn't replace it.
[eluser]Pascal Kriete[/eluser]
You're not echoing it in the controller by any chance, are you?
[eluser]Nateisonfire[/eluser]
[quote author="Pascal Kriete" date="1273590023"]You're not echoing it in the controller by any chance, are you?[/quote] No, it's in the view file.
[eluser]Pascal Kriete[/eluser]
What version of CI? Do you have a function called _display in your controller?
[eluser]Unknown[/eluser]
Funny I should find this, I'm having the same problem on CI 1.7.2. I just use the Profiler instead. http://ellislab.com/codeigniter/user-gui...iling.html |
Welcome Guest, Not a member yet? Register Sign In |