luya\web\Controller::render PHP Method

render() public method

If we are acting in the module context and the layout is empty we only should renderPartial the content.
public render ( string $view, array $params = [] ) : string
$view string The name of the view file (e.g. index)
$params array The params to assign into the value for key is the variable and value the content.
return string
    public function render($view, $params = [])
    {
        if (!empty($this->module->context) && empty($this->layout)) {
            return $this->renderPartial($view, $params);
        }
        return parent::render($view, $params);
    }