【发布时间】:2020-05-26 23:58:40
【问题描述】:
我有一个基于 CI 构建的应用程序,它托管在 domain.com 上,现在我已经在主域上安装了 Wordpress,并将 CI 移动到 domain.com/folder。我将基本 URL 设置为 domain.com/folder 但它不起作用。所有文件夹都在根目录 public_html 中。
加载登陆页面的控制器:
public function index()
{
$this->load->view('client/home_view');
}
public function logout()
{
$client_id = $this->session->userdata('client_id');
$this->db->where('id', $client_id);
$data = $this->db->get('client');
$workforce = $data->row();
$country_name = $workforce->country_name;
if($country_name == 'Estonia')
{
$this->session->unset_userdata('client_logged_in');
redirect('Random');
}
else
{
$this->session->unset_userdata('client_logged_in');
redirect('Client');
}
}
【问题讨论】:
-
反之亦然,但可能会有所帮助:stackoverflow.com/questions/17829990/…
标签: php codeigniter