gpt4 book ai didi

css - Default.ctp 和一个完全不同的登录页面

转载 作者:太空宇宙 更新时间:2023-11-04 03:44:31 26 4
gpt4 key购买 nike

在我的 default.ctp 页面中,我保留适用于整个应用程序的导航和结构内容。例如菜单结构和基于列的 CSS。但是,我想更改我的登录页面,使其看起来完全不同(没有菜单、没有列等)

有没有办法只为单个 URL 加载单独的 ctp 文件?例如/插件/ Controller /登录

最佳答案

http://book.cakephp.org/2.0/en/views.html

您可以为登录页面创建新布局,并为该 Controller /操作更改布局名称

$this->layout = 'login';

关于css - Default.ctp 和一个完全不同的登录页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24346449/

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