Welcome Guest, Not a member yet? Register   Sign In
HOOK post_controller_constructor, exclude specific controller form execution
#1

[eluser]Atas[/eluser]
Hello, does anybody know how to exclude a specific controller from hook post_controller_constructor execution , any ideas ?

Thanks !
#2

[eluser]danmontgomery[/eluser]
Code:
$CI =& get_instance();
if($CI->router->class == 'class_to_exclude') {
    return;
}

// Do things
#3

[eluser]Atas[/eluser]
Hi noctrum, where do i need to put that code ?

Thanks!


Update: oh ! in the hook ... ok...
#4

[eluser]danmontgomery[/eluser]
Yep, in your post_controller_constructor hook
#5

[eluser]Atas[/eluser]
Thank you very much !




Theme © iAndrew 2016 - Forum software by © MyBB