private function run_initializers()
    {
        $method_name = 'init';
        $cn = get_called_class();
        
        # Run ApplicationController's init method.
        if ($inits = $this->getAppControllersMethod($method_name)) {
            foreach ($inits as $init) {
                $init = $init->bindTo($this);
                $init();
            }
        }
        
        $method = $this->selfRefl->getMethod($method_name);
        if ($method->getDeclaringClass()->getName() == $cn) {
            $this->$method_name();
        }
    }
private function run_initializers()
    {
        $method_name = 'init';
        $cn = get_called_class();
        
        # Run ApplicationController's init method.
        if ($inits = $this->getAppControllersMethod($method_name)) {
            foreach ($inits as $init) {
                $init = $init->bindTo($this);
                $init();
            }
        }
        
        $method = $this->selfRefl->getMethod($method_name);
        if ($method->getDeclaringClass()->getName() == $cn) {
            $this->$method_name();
        }
    }
private function run_initializers ( ) { $ method_name = 'init' ; $ cn = get_called_class ( ) ; # Run ApplicationController's init method. if ( $ inits = $ this -> getAppControllersMethod ( $ method_name ) ) { foreach ( $ inits as $ init ) { $ init = $ init -> bindTo ( $ this ) ; $ init ( ) ; } } $ method = $ this -> selfRefl -> getMethod ( $ method_name ) ; if ( $ method -> getDeclaringClass ( ) -> getName ( ) == $ cn ) { $ this -> $ method_name ( ) ; } }
Runs initializers for both the actual controller class
and it's parent ApplicationController, if any.
Runs initializers for both the actual controller class and it s parent ApplicationController if any .