Welcome Guest, Not a member yet? Register   Sign In
Fetch data from a post controller hook?
#1

[eluser]Unknown[/eluser]
Hello,


Currently i am developing a PHP PBBG in CI, anyways i have a hook known as "Resource Handler" which does some mathematical formulas and throws those variables into the template. I am using the standard template system if thats a important factor.

Now the hook is a post controller hook and i was wondering if theres any way to get the variables that is being thrown into the templates?

Thanks.
#2

[eluser]pistolPete[/eluser]
Where do you want to access this data? And what do you want to do with that data?
Did you consider extending the controller class instead of a hook?
What do you mean by "standard template system"?
#3

[eluser]Unknown[/eluser]
Extending the controller class worked great. Thanks Smile




Theme © iAndrew 2016 - Forum software by © MyBB