在detail-index.php引入
require_once(dirname(__FILE__)."/view.php");//正常的语句,不同的是里面需要带参数。
例如:下面代码写咋 index.php(detail-index.php的上一层)
'detail' => function ($url) {
return Html::a('<span class="">明细管理</span>',
$url, [
'title' => '明细管理',
'data' => [
'method' => 'post', //不加post,第一次进入页面都需要手动刷新一次
]
]);
},
index.php

detail-index.php
本文介绍了一个使用PHP实现的页面导航配置示例,展示了如何通过在detail-index.php中引入view.php来设置带有参数的导航链接,并确保了在页面首次加载时不需手动刷新即可正确显示。
3758

被折叠的 条评论
为什么被折叠?



