CakePHP查看包括其他视图 [英] CakePHP View including other views
问题描述
我有一个CakePHP应用程序,在某些时候将显示一个视图与产品媒体(图片或视频)我想知道,如果,有某个视图威胁视频或威胁的图片,取决于一个标志。我想使用那些小视图到其他几个目的,所以它应该是像一个蛋糕组件,用于重用。
I have a CakePHP application that in some moment will show a view with product media (pictures or videos) I want to know if, there is someway to include another view that threats the video or threats the pictures, depending on a flag. I want to use those "small views" to several other purposes, so It should be "like" a cake component, for reutilization.
你们建议使用什么( include('')
命令)
What you guys suggest to use to be in Cake conventions (and not using a raw include('')
command)
推荐答案
Check out this link and more specifically the Elements-part of that manual page, should tell you everything you need to know
这篇关于CakePHP查看包括其他视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!