所以这里是普通 Yii 控制器中的重要代码。
Yii::import('application.vendors.*');
require_once('redbean/rb.php');
$config = Yii::app()->getComponents(false);
R::setup($config['db']['connectionString'],
$config['db']['username'],
$config['db']['password'])
$guest = R::dispense( 'guest' );
$guest->email = $row['Guest Email'];
错误发生在dispens() 行。
include(Model_Guestx.php) function.include: 无法打开流: 没有这样的文件或目录 (路径编辑\framework\YiiBase.php:418)
#0路径编辑\framework\YiiBase.php(418): CWebApplication->handleError()
问题是为什么 Yii 试图加载一个与 redbean 同名的模型正在寻找分配?
谢谢!
肯