PHP code example of t4web / admin

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

    

t4web / admin example snippets



return array(
    'modules' => array(
        // ...
        'Sebaks\View',
        'Sebaks\ZendMvcController',
        'T4web\Admin',
    ),
    // ...
);

'router' => [
    'routes' => [
        'users-list' => [
            'type' => 'Zend\Mvc\Router\Http\Literal',
            'options' => [
                'route'    => '/admin/users/list',
                'defaults' => [
                    'controller' => 'Application\Controller\Index',
                    'action'     => 'index',
                ],
            ],
        ],
    ],
],

'sebaks-view' => [
    'blocks' => [
        't4web-admin-sidebar-menu' => [
            'template' => 't4web-admin/sidebar-menu',
            'children' => [
                'users-menu-item' => [
                    'template' => 't4web-admin/sidebar-menu-item',
                    'variables' => [
                        'label' => 'Users',
                        'route' => 'users-list',
                        'icon' => 'fa-users',
                    ],
                ],
            ],
        ],
    ],
],
bash
$ php composer.phar update