1
我需要獲取redbean instacne並將其傳遞給我需要的模型函數。 This document說了一種做法。獲取redbean實例
$toolbox = RedBean_Setup::kickstart('mysql:host=localhost;dbname=demo','root','');
$redbean = $toolbox->getRedBean();
但它不起作用。它給我錯誤
Fatal error: Call to a member function getRedBean() on a non-object in ...
我可以看到方法在那裏。我怎麼能實現這個?
混淆赫克......但這個工作對我來說,太。謝謝。 – CWSpear