Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 CodeIgniter 中的重定向将变量传递给位于不同 php 文件中的函数?
例如,
$name='John' redirect('home/login($name)');
这个对吗?
不,你用错了方法。试试吧
redirect('home/login/'.$name);