Welcome Guest, Not a member yet? Register   Sign In
Hooks and redirects
#1

If you set up a hook to execute post_controller or even post_system, the hook won't execute if you redirect out of the controller. That makes sense, since redirect ends the script's execution. One possible solution is to set up a view that contains the redirect. That way, the controller will finish executing, the hook will execute, and the redirection still takes place.

Any comments or better ideas?
Hey, don't work without a PHP debugger. Several free IDEs have this features built in. Two are NetBeans and CodeLobster. Without a debugger, it's like you're driving with a blindfold on -- you are going to crash!
Reply


Messages In This Thread
Hooks and redirects - by RobertSF - 01-24-2016, 01:52 PM
RE: Hooks and redirects - by kenjis - 01-24-2016, 02:53 PM
RE: Hooks and redirects - by RobertSF - 01-24-2016, 04:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB