PHP code example of woodynew / z-dcat-iframe-tab
1. Go to this page and download the library: Download woodynew/z-dcat-iframe-tab 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/ */
woodynew / z-dcat-iframe-tab example snippets
return [
# 是否开启iframe_tab
'enable' => env('START_IFRAME_TAB', true),
# 底部设置
'footer_setting' => [
'copyright' => env('APP_NAME', ''),
'app_version' => env('APP_VERSION', ''),
# 是否将底部置于菜单下
'use_menu' => false
],
# 是否开启标签页缓存
'cache' => env('IFRAME_TAB_CACHE', false),
# 更改dialog表单默认宽高
'dialog_area_width' => env('IFRAME_TAB_DIALOG_AREA_WIDTH', '50%'),
'dialog_area_height' => env('IFRAME_TAB_DIALOG_AREA_HEIGHT', '90vh'),
# iframe-tab占用的路由 默认 '/'
'router' => '/',
'domain' => null,
# 是否开启懒加载模式
'lazy_load' => true
];
$router->get('/home', 'HomeController@index');
# 发布扩展必备文件
$ php artisan vendor:publish --tag=iframe-tab
# 发布扩展配置文件
$ php artisan vendor:publish --tag=iframe-tab.config
# 发布扩展的视图文件(如想自定义某些内容可发布出去,建议不要使用)
$ php artisan vendor:publish --tag=iframe-tab.view
$ php artisan vendor:publish --tag=iframe-tab --force
$ php artisan vendor:publish --tag=iframe-tab.config --force