protected function getControllerInstance($class)
    {
        if (!isset($this->controllerInstances[$class])) {
            $this->controllerInstances[$class] = new $class(array(
                'wei' => $this->wei,
                'app' => $this,
            ));
        }

        return $this->controllerInstances[$class];
    }
protected function getControllerInstance($class)
    {
        if (!isset($this->controllerInstances[$class])) {
            $this->controllerInstances[$class] = new $class(array(
                'wei' => $this->wei,
                'app' => $this,
            ));
        }

        return $this->controllerInstances[$class];
    }
protected function getControllerInstance ( $ class ) { if ( ! isset ( $ this -> controllerInstances [ $ class ] ) ) { $ this -> controllerInstances [ $ class ] = new $ class ( array ( 'wei' => $ this -> wei , 'app' => $ this , ) ) ; } return $ this -> controllerInstances [ $ class ] ; }
Get the controller instance, if not found, return false instead

@param string $class The class name of controller
@return \Wei\BaseController
Get the controller instance if not found return false instead