gpt4 book ai didi

php - 我不会在 Controller 中加载多个 View

转载 作者:太空宇宙 更新时间:2023-11-04 13:41:13 24 4
gpt4 key购买 nike

我正在尝试在 Controller 中加载多个 View 。

它简单易行,但似乎无法正常工作。

public function index()
{
$this->_head();
$this->load->view('navigation_panel');
$this->load->view('login');
$this->_footer();
}

已显示登录页面,但此页面仅在没有导航面板的情况下显示。事件不受 css 影响。

当 navigation_panel 仅在评论登录时显示时,它会在 css 的影响下正常显示。

我不知道为什么会这样。如果有人知道这个症状,请告诉我如何解决。

最佳答案

尝试切换它:

public function index()
{
$this->_head();
$this->load->view('login');
$this->load->view('navigation_panel');
$this->_footer();
}

关于php - 我不会在 Controller 中加载多个 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22705294/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com