我有两张表格,页数和员额,都列在自动取款机上,并使用页数加入表。
我的页面模型与HABTM的定义包含一个功能。
class Page extends AppModel
{
var $name = "Page";
......
......
function callthis()
{
return $this->find( all );;
}
}
我从我的员额控制员那里试图称职。
class PostsController extends AppController
{
....
....
function index()
{
$returned = $this->Post->Page->callthis();
}
}
结果是
Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near threadedpages at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 681]
进一步预测产出:
法典
$out = null;
if ($error) {
trigger_error( <span style="color:Red;text-align:left"><b> . __( SQL Error: , true) . "</b> {$this->error}</span>", E_USER_WARNING);
背景
$sql = "threadedpages"
$error = "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near threadedpages at line 1"
$out = null
呼吁
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 681
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 266
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 410
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 364
Model::call__() - CORE/cake/libs/model/model.php, line 502
Overloadable::__call() - CORE/cake/libs/overloadable_php5.php, line 50
AppModel::threadedpages() - [internal], line ??
PostsController::admin_index() - CORE/plugins/cakey/controllers/posts_controller.php, line 11
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
应在《基本生活标准》中规定相关的示范功能? 如果我们检查
当找到塔格模型的功能时,可以从相关的收款控制员那里召来,为什么我会从相关的员额控制员那里打电话给页模型。$this->Recipe->Tag->find( all , array( conditions =>array( Tag.name => Dessert )));