你好,因爲它是書面F3文檔在這裏:http://fatfreeframework.com/basket#load 你可以得到籃下的所有結果這樣不含脂肪框架籃類找到籃子的所有項目不工作
$result = $basket->find(); // array of basket items, if any
但當我它,我得到以下錯誤:
'內部服務器錯誤
Missing argument 1 for Basket::find(), called in /var/www/***/controller.php on line 55 and defined
有什麼建議嗎?
我可以找到由_id項目的車分配給每一個它的項目?我嘗試發佈basket-> find('_ id','something')或basket-get('_ id','something')但沒有運氣@ikkez – delmoras
據我所知,沒有這樣的自動遞增ID籃。它只是一個關鍵的價值商店,能夠將多個kv對添加到一個商品中......就像整個多維數組...一樣,find方法就是選擇正確的第一級數組鍵 – ikkez