PHP code example of zofe / layout-module

1. Go to this page and download the library: Download zofe/layout-module library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

zofe / layout-module example snippets


...
    public function render()
    {
        return view('knowledgebase::Admin.views.articles_edit')
            ->layout('layout::admin');
    }
...

composer 

return [
    'layout' => 'layout::frontend',
];

return [
    'layout' => 'layout::admin',
];