rong.wudimei.com发布了rong framework 0.8和文档

wudimei_com 2012-12-07 10:54:43
rong.wudimei.com发布了rong framework 0.8和文档

经过老夫几周的努力,设新加了一些功能,做了wudimei模板引擎的文档,并做了语法着色。
具体看这里:http://rong.wudimei.com/
在线文档在这里:http://rong.wudimei.com/manual/0.8/cn/index.html

if you are a english reader,please checkout http://rong.wudimei.com/manual/0.8/en/index.html


change log:

2012-12-02 fixed the quote's bug in class Rong_View_Wudimei
add a modifier "date" for wudimei template engine: <!--{$wudimei.now|date:"Y"}--> <!--{$wudimei.now|date:"Y-m-d H:i:s"}-->
2012-12-01 change Rong_Common_String and Rong_Common_Utf8String, i removed the $string member variable form each class.
pls use it like this:$strName = new Rong_Common_String("yangqingrong");
$strName = new Rong_Common_Utf8String("杨庆荣yangqingrong");
add class Rong_URI_PathInfoParam, "index.php/{action}/{param1}/{value1}/{param2}/{value2}"
add some modifier for Rong_View_Wudime,<!--{$str|urlencode}--> <!--{$str|urldecode}-->,please to see files in Rong/View/Wudimei/Plugins
2012-11-30 add Rong_Common_ArrayTree::getChildren($parentId);
2010-9-21 remove Rong_Uri_BaseUrl,the base_url is detected automactly.
...全文
1501 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
xuzuning 2012-12-07
  • 打赏
  • 举报
回复
如果要用 ul li 实现呢?
wudimei_com 2012-12-07
  • 打赏
  • 举报
回复
像这种的吗?这种用Rong_Common_ArrayTree类

abc
efg
jijk
lmn
dd
dd

我实现了这样的功能,主要是用一个level元素来记录第几级别,并排到上层节点和兄弟节点的下方。


<table class="LineTable">
<tr>
<th>编号</th>
<th>标题</th>


</tr>
<!--{foreach from=$articles item=$article}-->
<tr>
<td>
<!--{$article.id}-->
</td>
<td>
<!--{for var=$index from=0 to=$article.level step=1}-->
 
<!--{/for}-->
<!--{$article.filename}-->
</td>


</tr>
<!--{/foreach}-->
</table>


看{for var=$index from=0 to=$article.level step=1}这个地方,是一个for循环,用来输出空格的。
xuzuning 2012-12-07
  • 打赏
  • 举报
回复
这个模板引擎能解决无极树状显示吗?

4,250

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧