public function renderRawData($data = '')
    {
        $layoutPath = null;
        if ($this->layout && (!$layoutPath = $this->getLayoutFile((new KernelInjector)->build()->getAppDir(),
                $this->module))
        ) {
            (new LoggerInjector)->build()->send('error', 'Layout `'.$this->layout.'` not found');
        }

        if ($layoutPath) {
            $data = $this->insertStyleScripts($this->renderFile($layoutPath, ['content' => $data]));
        }

        return $data;
    }
public function renderRawData($data = '')
    {
        $layoutPath = null;
        if ($this->layout && (!$layoutPath = $this->getLayoutFile((new KernelInjector)->build()->getAppDir(),
                $this->module))
        ) {
            (new LoggerInjector)->build()->send('error', 'Layout `'.$this->layout.'` not found');
        }

        if ($layoutPath) {
            $data = $this->insertStyleScripts($this->renderFile($layoutPath, ['content' => $data]));
        }

        return $data;
    }
public function renderRawData ( $ data = '' ) { $ layoutPath = null ; if ( $ this -> layout && ( ! $ layoutPath = $ this -> getLayoutFile ( ( new KernelInjector ) -> build ( ) -> getAppDir ( ) , $ this -> module ) ) ) { ( new LoggerInjector ) -> build ( ) -> send ( 'error' , 'Layout `' . $ this -> layout . '` not found' ) ; } if ( $ layoutPath ) { $ data = $ this -> insertStyleScripts ( $ this -> renderFile ( $ layoutPath , [ 'content' => $ data ] ) ) ; } return $ data ; }
Render raw data in layout

@access public

@param string $data arguments array

@return string
@throws Exception
Render raw data in layout