public function force($request_controller, $request_action = 'index') {
        $this->controller = $request_controller;
        $this->action = $request_action;
        
        $handler = $this->loadController();
        
        if ( !$handler ) {
            throw new LogicException(sprintf('No se existe la clase del controlador (%s)', $this->controller));
        }
        
        if ( !method_exists($handler, $this->action) ) {
            $reflection = new \ReflectionClass($handler);

            throw new LogicException(sprintf('No existe el m&eacute;todo (%s) del controlador (%s)', 
                    $this->action, $reflection->getName()), ['controller' => $handler]);
        }
        
        return $handler;
    }
public function force($request_controller, $request_action = 'index') {
        $this->controller = $request_controller;
        $this->action = $request_action;
        
        $handler = $this->loadController();
        
        if ( !$handler ) {
            throw new LogicException(sprintf('No se existe la clase del controlador (%s)', $this->controller));
        }
        
        if ( !method_exists($handler, $this->action) ) {
            $reflection = new \ReflectionClass($handler);

            throw new LogicException(sprintf('No existe el m&eacute;todo (%s) del controlador (%s)', 
                    $this->action, $reflection->getName()), ['controller' => $handler]);
        }
        
        return $handler;
    }
public function force ( $ request_controller , $ request_action = 'index' ) { $ this -> controller = $ request_controller ; $ this -> action = $ request_action ; $ handler = $ this -> loadController ( ) ; if ( ! $ handler ) { throw new LogicException ( sprintf ( 'No se existe la clase del controlador (%s)' , $ this -> controller ) ) ; } if ( ! method_exists ( $ handler , $ this -> action ) ) { $ reflection = new \ ReflectionClass ( $ handler ) ; throw new LogicException ( sprintf ( 'No existe el m&eacute;todo (%s) del controlador (%s)' , $ this -> action , $ reflection -> getName ( ) ) , [ 'controller' => $ handler ] ) ; } return $ handler ; }
Forza la carga de un controlador
@param string $request_controller
@param string $request_action
@return \PowerOn\Controller\Controller
@throws LogicException
Forza la carga de un controlador