2013-08-06 35 views
0

我不斷收到這個瀏覽器錯誤嚴格的標準保持收到此錯誤

Strict Standards: Non-static method JSite::getMenu() should not be called statically, 
assuming $this from incompatible context 
in C:\xampp\htdocs\afvidz\templates\videoplus\index.php on line 53` 

Strict Standards: Non-static method JApplication::getMenu() should not be called statically, 
assuming $this from incompatible context 
in C:\xampp\htdocs\afvidz\includes\application.php on line 593` 

,這裏是我的第53行

$menu = JSite::getMenu(); 

和線路593

$menu = parent::getMenu('site', $options); 

回答

1

Yoiu是試圖調用對象方法的靜態方式是(類方法)

$object - new JSite; 
$menu = $object->getMenu();