如题。
做项目想抛弃那个巨丑的框架页。 但是模板最好是能够继承,整个页面要有个架子,然后具体的页面继承这个架子。
做项目想抛弃那个巨丑的框架页。 但是模板最好是能够继承,整个页面要有个架子,然后具体的页面继承这个架子。
1
explon May 19, 2011
YII 可以
|
3
holystrike May 19, 2011 via iPhone
smarty3好像可以
|
4
chuck911 May 20, 2011
|
5
Paranoid May 20, 2011
哥也在用Yii :)~
|
6
darasion OP 嗯嗯。
项目组内的用yii和smary2.x,smarty3我看文档是有 继承,但是2却没有。 所以想了个办法来模拟继承, 在具体页面的上传入具体页面的模板: $smarty->assgin('content', 'index'); $smarty->assgin('content', 'detail'); .... 然后每次都 display 架子 parent.html : 。。。。 {include file="$content.html"} 。。。 |
7
yesmeck May 20, 2011
twig可以
|
8
reus May 24, 2011
同推荐Twig,完胜smarty
|