基金投教品质总榜:谁傲居榜首?谁落在榜尾?丨基金投教测评④
2025-01-06 11:04
1.thinkphp怎么限制用户访问控制器
thinkphp怎么限制用户访问控制器
举一个最简单的访访问例子,用session来控制访问,问限cheat engine 6.7源码<?phpclass IndexAction extends Action {
private function checkRoot () {
if ($_SESSION['root'] != 'admin') {
$this->redirect('/login');
}
}
public function index () {
$this->checkRoot();
}
}
2025-01-06 10:25
2025-01-06 10:13
2025-01-06 10:09
2025-01-06 09:58
2025-01-06 09:50
2025-01-06 09:29
2025-01-06 09:19
2025-01-06 08:51