问题描述
header('location: ' . URLROOT . '/users/login?success=registration');
我想通过获取URL?success = registration在视图/ users / login上显示消息
<?PHP
if(isset($_GET['success']) && $_GET['success'] == 'registration'){
echo ' <h3 style="color: green;">Registration successful</h3>';
} else {
echo '';
}
我正在使用手工制作的MVC框架,因此我无法引用/user/login.PHP,它必须是/ user / login,因为第一个是控制器,第二个是控制器动作。
第二个位于公用文件夹中
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)