Skip to content

Instantly share code, notes, and snippets.

@jawngee
Created July 16, 2009 06:21
Show Gist options
  • Save jawngee/148256 to your computer and use it in GitHub Desktop.
Save jawngee/148256 to your computer and use it in GitHub Desktop.
<?
/**
* [[
* before:
* has_profile: {}
* has_access: { to: 'forum' }
* stats: {}
* after:
* stats: {}
* ]]
*/
class ForumController extends Controller
{
/**
* [[
* before:
* owns_this: { object: 'forum_message' }
* ]]
*/
public function edit($message_id)
{
// ..
}
/**
* [[
* before:
* has_profile:
* ignore: true
* has_access:
* ignore: true
* ]]
*/
public function index()
{
// ..
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment