18038435860

JTBC_PHP 3.0 transfer调用分类只显示10个怎么办?

时间:2019-01-10 来源:东莞网站建设 点击:591

transfer 功能函数中有limit参数 未设置该参数时 会以10作为该参数的预设值

$paraLimit = base::getNum(base::getParameter($para, 'limit'), 0);
if ($paraLimit == 0) $paraLimit = 10;

 

一般情况下调用分类的代码

{$=transfer('genre=universal/category;type=@order;baseurl=./;tpl=d-li-list', array('fid' => 0, 'genre' => 'download'))}

 

想调用100条分类代码,加个limit=100

{$=transfer('genre=universal/category;type=@order;baseurl=./;limit=100;tpl=city-list', array('fid' => 0, 'genre' => 'city'))}