嗨全部 我的代碼中有這個奇怪的錯誤。 我想用cakephp製作一個cookie系統,並且在app_controller.php中我包含了致命錯誤:調用未定義的方法CookieComponent :: del()
var $ components = array('Auth','Cookie'); var $ helpers = array('Html','Form','Session');
但每次我點擊註銷鏈接時出現錯誤。 這是函數
函數註銷(){ $ cookie = $ this-> Cookie-> read('User'); if($ cookie) $ this-> Cookie-> del('User'); $ this-> Session-> setFlash('Logout'); $ this-> redirect($ this-> Auth-> logout()); }
我在哪裏可以尋找解決方案? 謝謝你,夥計
您能否提供什麼是錯誤? – 2010-10-08 12:59:39