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