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.
基本上我的模型、视图和控制器为用户完美工作,但我试图找出“操作”侧边栏的生成方式和位置?我基本上是在尝试为用户视图添加它。提前致谢。
它在相应的视图文件中,例如/views/users/index.ctp. 在那里删除/编辑它。
/views/users/index.ctp
从视图中删除代码将删除文本,但实际的侧边栏将保留。要为所有视图删除它,请编辑 webroot/css/cake.generic.css。要仅修改特定视图,请创建自己的 .css 样式表并从控制器方法或视图中调用它。 面包店对此有帮助。