當我運行的index.php和加載頁面,它下面的錯誤出現:嚴格的標準:RPA :: PreLoadField(聲明)應與基金會:: PreLoadField()的兼容
Strict Standards: Declaration of RPA::PreLoadField() should be compatible with that of Foundation::PreLoadField() in C:\xampps\htdocs\Res\RPA.php on line 39
我看了一下RPA.php的39行,這就是所謂的類:
class RPA extends Foundation
這個錯誤任何想法?
這個功能是從基礎班:
public function PreLoadField($table, $column, $rowid, $coldata, &$value, $disabled=false)
{
$retval = false;
if ($table === 'photos')
{
if ($column === 'blogentry')
{
$value = LookUpBlogEntries ($column, $coldata[$column]);
$retval = true;
}
}
return $retval;
}
這個功能是從RPA類:
public function PreLoadField($table, $column, $rowid, $coldata, &$value)
{
$retval = parent::PreLoadField($table, $column, $rowid, $coldata, &$value);
return $retval;
}
RPA延伸基金會..
Foundations :: PreLoadField有比RPA :: PreLoadFields($ disabled)更多的參數。您需要將$ disabled = false添加到您的RPA方法中。 – Corbin
已添加,但仍無法使用! –
現在不同的消息?或者沒有做任何事情?不工作是什麼意思? – Corbin