PHP code example of marcusamatos / jvslayout

1. Go to this page and download the library: Download marcusamatos/jvslayout 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/ */

    

marcusamatos / jvslayout example snippets



return array(
    'router' => array(
        'routes' => array(
            'home' => array(
                'type' => 'Zend\Mvc\Router\Http\Literal',
                'options' => array(
                'route'    => '/',
                'defaults' => array(
                    'controller' => 'Application\Controller\Index',
                    'action'     => 'index',
                    'layout'     => 'layout/home'
                ),
            ),
        )
    )
);



return array(
    'jvs-layout' => array(
        'uri' => array(
            '/news' => 'layout/news',
            '/admin*' => 'layout/admin'
        );
    );
);