src/View/AppView.php
public function partial($name, array $data = [])
    {
        $file = $this->_getLayoutPartialPath($name);

        if (FS::isFile($file)) {
            return $this->_render($file, $data);
        }

        return null;
    }
public function partial($name, array $data = [])
    {
        $file = $this->_getLayoutPartialPath($name);

        if (FS::isFile($file)) {
            return $this->_render($file, $data);
        }

        return null;
    }
public function partial ( $ name , array $ data = [ ] ) { $ file = $ this -> _getLayoutPartialPath ( $ name ) ; if ( FS :: isFile ( $ file ) ) { return $ this -> _render ( $ file , $ data ) ; } return null ; }
Render layout partial.

@param   string $name
@param   array $data
@return  null|string
Render layout partial .