Welcome Guest, Not a member yet? Register   Sign In
What exactly gets passed to the hook?
#11

[eluser]gtech[/eluser]
I was using CI 1.6.1

all I can say is

1)cut out as much code as you can (just echo in the hook hello)
2)check Myclass.php is in the hooks dir
3)check filename, classname and function case matches that of all the characters in the hook config array in config/hooks.php (mine does so I know that setup works).
4)double check hooks enabled in config/config.php
5)make sure everything is in PHP tags with no white spaces outside the tags (including the hook config array)
#12

[eluser]oddman[/eluser]
thanks gtech

i just figured it out

In the hooks.php config file, I was using $hooks[] instead of $hook[]

*slaps self*

thanks again for your help Smile
#13

[eluser]gtech[/eluser]
excellent.




Theme © iAndrew 2016 - Forum software by © MyBB