src/Application.php
protected function invokeRPC()
    {
        $request = $this->request;
        if (!$request->hasInvocation()) {
            return '';
        }
        if (!$request->isValidInvocation()) {
            $invocationType = $request->getInvocationType();
            trigger_error("$invocationType is not a valid invocation", E_USER_ERROR);
        }
        if ($request->isRPCInvokeInvocation()) {
            $this->getClientProxy()->setRpcFlag(true);
        }
        $rpcParams = $this->request->getRpcParameters();

        $num_arg = count($rpcParams);
        if ($num_arg < 2) {
            //$errmsg = MessageHelper::getMessage("SYS_ERROR_RPCARG", array($class));
            $errmsg = MessageHelper::getMessage("SYS_ERROR_RPCARG");
            trigger_error($errmsg, E_USER_ERROR);
        } else {
            $objName = array_shift($rpcParams);
            $methodName = array_shift($rpcParams);
            return $this->executeRpcMethod($objName, $methodName, $rpcParams);
        }
    }
protected function invokeRPC()
    {
        $request = $this->request;
        if (!$request->hasInvocation()) {
            return '';
        }
        if (!$request->isValidInvocation()) {
            $invocationType = $request->getInvocationType();
            trigger_error("$invocationType is not a valid invocation", E_USER_ERROR);
        }
        if ($request->isRPCInvokeInvocation()) {
            $this->getClientProxy()->setRpcFlag(true);
        }
        $rpcParams = $this->request->getRpcParameters();

        $num_arg = count($rpcParams);
        if ($num_arg < 2) {
            //$errmsg = MessageHelper::getMessage("SYS_ERROR_RPCARG", array($class));
            $errmsg = MessageHelper::getMessage("SYS_ERROR_RPCARG");
            trigger_error($errmsg, E_USER_ERROR);
        } else {
            $objName = array_shift($rpcParams);
            $methodName = array_shift($rpcParams);
            return $this->executeRpcMethod($objName, $methodName, $rpcParams);
        }
    }
Invoke the action passed from browser

@return HTML content