如何使用CodeIgniter中的header()函数刷新页面并重定向到另一个页面


How to refresh a page and redirect to another page using header() function in CodeIgniter

我可以使用普通PHP刷新页面。我如何用CodeIgniter做到这一点?

我在PHP中尝试这个:

<html>
<title>Thank You</title>
<body bgcolor="#E6E6FA">
  <center>
    <h1>Thank You For Visiting...Wish you to visit again...</h1>
  </center>
  <?php
    header(refresh:5; url="login_input.php");
  ?>
</body>
</html>

我知道我必须写这个:

"<?php echo base_url();?>index.php/welcome/"

但在哪里?

我必须在模型和控制器中创建函数来做到这一点吗?

感谢大家的回复…非常感谢Dan Belden先生提供了收集知识的链接。

实际上我正在寻找的所需代码如下…

<html>
<title>Thank You</title>
<head>
<meta HTTP-EQUIV="REFRESH" content="5; url=<?php echo    
base_url();?>index.php/welcome/login">
</head>
<body bgcolor="#E6E6FA">
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<center><h1>Thank You For Visiting...Wish you to visit again.......  
</h1></center>
</body>
</html>