Welcome Guest, Not a member yet? Register   Sign In
rails-like before_filter
#2

[eluser]dioony[/eluser]
i forgotten to notice the following:

note that the hooks-config uses post_controller_constructor instead of pre_controller. this is necessary, because it uses some functions/attributes of the controller itself. therefore please note that the constructor is called before the filter will be called to avoid bugs! so, i you're using this filter, then never run any code in the constructor which normally have to run after the filter!


Messages In This Thread
rails-like before_filter - by El Forum - 04-08-2008, 09:49 AM
rails-like before_filter - by El Forum - 04-08-2008, 09:53 AM
rails-like before_filter - by El Forum - 04-08-2008, 11:16 AM
rails-like before_filter - by El Forum - 04-09-2008, 09:52 AM
rails-like before_filter - by El Forum - 07-03-2008, 12:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB