我在以下代码段中遇到错误:Too few arguments to function showtbl::GetTabellen_ns(), 0 passed in abcde/folder/php.php on line 153 and exactly 2 expected
不知道为什么我会得到这个。我对 PHP Prado 和所有编程都很陌生,所以可能是一个愚蠢的错误。
protected function GetTabellen_ns($offset, $limit)
{
$criteria=new TActiveRecordCriteria;
$criteria->Condition = 'name = $name';
$criteria->OrdersBy['name'] = 'asc';
$criteria->Limit = 15;
$criteria->Offset = 20;
return prdtblRecord::finder()->findAll($criteria);
}
protected function populateData_ns($offset, $limit)
{
$offset=$this->Repeater->CurrentPageIndex*$this->Repeater->PageSize;
$limit=$this->Repeater->PageSize;
if($offset+$limit>$this->Repeater->VirtualItemCount) {
$limit=$this->Repeater->VirtualItemCount-$offset;
}
$this->Repeater->DataSource=$this->GetTabellen_ns($offset,$limit);
$this->Repeater->dataBind();
}
Thx寻求帮助希望有人可以帮助我。
编辑:如果有人能告诉我如何设置 $offset 和 $limit 也会对我有很大帮助。