PHP code example of sebaks / view
1. Go to this page and download the library: Download sebaks/view 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/ */
sebaks / view example snippets
'admin-show-list' => [
'extend' => 'admin-list',
'layout' => 'admin-layout',
'template' => 't4web-admin/content/list',
'viewModel' => 'Shows\Action\Admin\Show\CreateAction\ListViewModel',
'childrenDynamicLists' => [/*...*/],
'data' => [/*...*/],
'children' => [/*...*/],
],
<div class="box">
<div class="box-body no-padding">
<?= $this->table
'sebaks-view' => [
'layouts' => [
'admin' => [
'template' => 'layout/admin',
'children' => [
'top-panel' => 't4web-admin-top-panel',
'sidebar-menu' => 't4web-admin-sidebar-menu',
],
]
],
'contents' => [
'admin-user-list' => [ // you project must contain route name admin-user-list
'template' => 't4web-admin/index/index',
'layout' => 'admin',
'children' => [
'filter' => 't4web-admin-list-filter',
'table' => 't4web-admin-list-table',
'paginator' => 't4web-admin-list-paginator',
],
'variables' => [
'title' => 'List of users',
],
]
],
'blocks' => [
't4web-admin-top-panel' => [
'template' => 't4web-admin/top-panel',
],
't4web-admin-sidebar-menu' => [
'template' => 't4web-admin/sidebar-menu',
],
't4web-admin-list-filter' => [
'template' => 't4web-admin/list-filter',
],
't4web-admin-list-table' => [
'template' => 't4web-admin/list-table',
'children' => [
'table-head' => 't4web-admin-list-table-head',
'table-row' => 't4web-admin-list-table-row',
],
],
't4web-admin-list-table-head' => [
'template' => 't4web-admin/list-table-head',
],
't4web-admin-list-table-row' => [
'template' => 't4web-admin/list-table-row',
],
't4web-admin-list-paginator' => [
'template' => 't4web-paginator/paginator',
],
],
],