0
有什么办法来运行的RenderPartial的应用方式,而不是通过加载使用renderPartial()
函数的所有意见?运行的应用程序
有什么办法来运行的RenderPartial的应用方式,而不是通过加载使用renderPartial()
函数的所有意见?运行的应用程序
我假设你想用你的看法,并没有布局:你应该简单地设置layout
假在你的控制器,例如:
Class MyController extends CController
{
public $layout=false;
}
如果您想使用此为您所有的控制器,你应该建立自己的基地控制器类:
Class Controller extends CController
{
public $layout=false;
// and if needed you can override render method
public function render($view,$data=null,$return=false)
{
// do what you want
}
}
然后所有的控制器应扩展此类;
Class MyController extends Controller
{
}