src/view/MbView.php
public function piece($filePiece)
    {
        $filePiece = $this->viewPath . "{$filePiece}.{$this->extension}";

        if (file_exists($filePiece)) {
            include $filePiece;
        } else {
            MbException::registerError(new \Exception("The file {$filePiece} not found!"));
        }
    }
public function piece($filePiece)
    {
        $filePiece = $this->viewPath . "{$filePiece}.{$this->extension}";

        if (file_exists($filePiece)) {
            include $filePiece;
        } else {
            MbException::registerError(new \Exception("The file {$filePiece} not found!"));
        }
    }
public function piece ( $ filePiece ) { $ filePiece = $ this -> viewPath . "{$filePiece}.{$this->extension}" ; if ( file_exists ( $ filePiece ) ) { include $ filePiece ; } else { MbException :: registerError ( new \ Exception ( "The file {$filePiece} not found!" ) ) ; } }
Get a piece to include in the view

@param string $filePiece File part address

@return void
Get a piece to include in the view