Welcome Guest, Not a member yet? Register   Sign In
Multiple Callbacks Possible?
#1

[eluser]CodeIgniterNewbie[/eluser]
Is it possible to have multiple callbacks set as a rule?

For example:

Code:
callback_method1|callback_method2

It seems like only the first callback works (in this case, method1). If I switch the callbacks, making method2 the first callback:

Code:
callback_method2|callback_method1

Then only method2 works.
#2

[eluser]Thorpe Obazee[/eluser]
It should work but the first rule should not return FALSE or the second would not run.
#3

[eluser]Dam1an[/eluser]
You could also have a function which takes a set of callback function names, and then calls each one using
Code:
call_user_func('my_callback_function');




Theme © iAndrew 2016 - Forum software by © MyBB