早睡早起,方能养生!
Sleep early rise early, way to keep healthy!

f3框架遍历数组

super
2022-02-25 20:11
views 272

global $db;
$item_name = $db->exec("SELECT * FROM product");
$f3->set('item_list', $item_name);

 

<repeat group="{{ @item_list }}" key="{{ @ikey }}" value="{{ @ivalue }}">
	<p>循环内容</p>
</repeat>

 



分享
0 条讨论
top