2014-02-16 74 views

回答

0

嘗試通過這種方式:

$authority->allow('manage', 'Post', function($self) use ($post) { 
    // return ($post->sth ...) 
}); 
+0

那麼, 「未定義變量」 錯誤。這也不是通過引用而傳遞的。 – user3299269