yuxunbin / yafphp

Automatically exported from code.google.com/p/yafphp
0 stars 0 forks source link

视图不支持layout #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
如题

Original issue reported on code.google.com by MaxSpeed...@gmail.com on 12 Nov 2011 at 3:58

GoogleCodeExporter commented 9 years ago
恩, 这个是没有实现的部分, 因为需求不是那么强烈. 
(大部分应用, 如果为了快速, 不会使用layout, 
否则就会使用自定义的视图如smarty)

Original comment by larue...@gmail.com on 15 Nov 2011 at 3:36

GoogleCodeExporter commented 9 years ago
smarty太庞大,速度也不是很快,有时候为了省事,考虑使用��
�个到几个公用的layout来布局。我考虑使用php来实现,有什么�
��的办法或建议吗?

Original comment by MaxSpeed...@gmail.com on 16 Nov 2011 at 12:46

GoogleCodeExporter commented 9 years ago
如果头尾分离的话,可以在模板中使用<?php $this->display('xxx') 
?>

Original comment by lcx165 on 16 Apr 2012 at 9:37