1
我正在使用帶有ZF2的ZfcUser(https://github.com/ZF-Commons/ZfcUser)模塊。我登錄使用Facebook。登錄後,我得到以下錯誤。在ZF 2中顯示錯誤
致命錯誤:調用到非對象的成員函數getEmail()中d:\ PHP中\ htdocs中\ zend_test \模塊\的Dom \視圖\ DOM \ DOM \上線index.phtml 2
代碼存在於第2行上
<?php echo $this->gravatar($this->zfcUserIdentity()->getEmail()) ?>
誰能說哪裏是問題?
感謝
顯然zfcUserIdentity()不包含用戶對象。這是根本原因,爲什麼不是這種情況,這是你需要弄清的東西;) – Sam