core/web/Controller.php
public function render($view, $params = [])
    {
        if (!empty($this->module->context) && empty($this->layout)) {
            return $this->renderPartial($view, $params);
        }

        return parent::render($view, $params);
    }
public function render($view, $params = [])
    {
        if (!empty($this->module->context) && empty($this->layout)) {
            return $this->renderPartial($view, $params);
        }

        return parent::render($view, $params);
    }
public function render ( $ view , $ params = [ ] ) { if ( ! empty ( $ this -> module -> context ) && empty ( $ this -> layout ) ) { return $ this -> renderPartial ( $ view , $ params ) ; } return parent :: render ( $ view , $ params ) ; }
If we are acting in the module context and the layout is empty we only should renderPartial the content.

@param string $view   The name of the view file (e.g. index)
@param array  $params The params to assign into the value for key is the variable and value the content.

@return string
If we are acting in the module context and the layout is empty we only should renderPartial the content .