http://localhost/index.php?m=Createhtml&a=batch_show&catid=31&steps=0&ids=43
等于
{:U("Createhtml/batch_show", array("catid"=>$vo['catid'] ,"steps"=>"0" ,"ids"=>$vo['id']) )}
下面是从后台摘抄片段做备注,这是后台模板获取的方法
<volist name="data" id="vo">ID: {$vo.id}">
排序:{$vo.listorder}
$vo['status']{$vo.url}{$vo.title}
{:U('public_preview',array('catid'=>$vo['catid'],'id'=>$vo['id']) )}
$vo['thumb']
{$config_siteurl}statics/images/icon/small_img.gif"
$vo['posid']
{$config_siteurl}statics/images/icon/small_elite.gif
$vo['islink']
{$config_siteurl}statics/images/icon/link.png
{$vo.views}
$vo['sysadd'] {$vo.username}
{$vo.username}
{$config_siteurl}statics/images/icon/contribute.png
{$vo.updatetime|date="Y-m-d H:i:s",###}
<?php$op = array();
$op[] = '<a href="javascript:;;" onClick="javascript:openwinx(\''.U("Content/edit",array("catid"=>$vo['catid'],"id"=>$vo['id'])).'\',\'\')">修改</a>';
$op[] = '<a href="'.U("Content/delete",array("catid"=>$vo['catid'],"id"=>$vo['id'])).'" class="J_ajax_del" >删除</a>';
if(isModuleInstall('Comments')){
$op[] = '<a href="'.U('Comments/Comments/index',array('searchtype'=>2,'keyword'=>'c-'.$vo['catid'].'-'.$vo['id'].'')).'" target="_blank">评论</a>';
}
echo implode(' | ',$op);
?>
</td>
</tr>
</volist>