所有網頁 圖片 影片 地圖 新聞 網誌搜尋 Gmail 更多 »
最近造訪的群組 | 說明 | 登入
Google 網上論壇首頁
Invalid argument using Auth Component
目前本群組有太多主題設為優先顯示。要優先顯示這個主題,請將其他主題的這個選項取消。
在處理您的要求時發生錯誤。請再試一次。
標幟
  2 個訊息 - 全部摺疊  -  將全文翻譯為 已翻譯 (查看所有原文)
您要留言的群組是 Usenet 群組。在此群組留言,網際網路上的任何使用者將可以看到您的電郵地址。
您的回覆郵件尚未寄出。
您已成功留言
 
寄件人:
收件人:
副本:
後續追蹤對象:
新增副本 | 新增後續追蹤對象 | 編輯主旨
主旨:
驗證:
為了確認,請輸入您在以下圖片中看到的字元,或輸入您按下存取圖示時所聽到的號碼。 注意聽並輸入您聽到的號碼
 
damanlovett  
檢視個人資料   翻譯為 已翻譯 (查看原文)
 更多選項 11月6日, 上午6時03分
寄件人: damanlovett <ed...@lovettcreations.org>
日期: Thu, 5 Nov 2009 14:03:52 -0800 (PST)
當地時間: 2009年11月6日(星期五) 上午6時03分
主旨: Invalid argument using Auth Component
I'm using the tutorial CakePHP Auth Component - Users, Groups &
Permissions Revisited

The error I'm getting is

Warning (2): Invalid argument supplied for foreach() [APP/
app_controller.php, line 98]

The code for the line error is

                $thisPermissions = $thisPermissions['Permission'];
                foreach($thisPermissions as $thisPermission){
                    $permissions[]=$thisPermission['name'];
                }

Which seems like no information is being passed to the loop.

Can any one help me figure out why information isn't being passed to
the loop?


    回覆    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
John Andersen  
檢視個人資料   翻譯為 已翻譯 (查看原文)
 更多選項 11月6日, 下午2時26分
寄件人: John Andersen <j.andersen...@gmail.com>
日期: Thu, 5 Nov 2009 22:26:15 -0800 (PST)
當地時間: 2009年11月6日(星期五) 下午2時26分
主旨: Re: Invalid argument using Auth Component
Check that the variable $thisPermissions contain an array and that it
is not empty!
pr($thisPermissions)

Maybe you don't need the line:
$thisPermissions = $thisPermissions['Permission'];

Enjoy,
   John

On Nov 6, 12:03 am, damanlovett <ed...@lovettcreations.org> wrote:


    回覆    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
無其他留言
« 返回討論主題 « 較新的主題     較舊的主題 »

建立群組 - Google 網上論壇 - Google 首頁 - 服務條款 - 隱私權政策
©2009 Google