Skip to content

Instantly share code, notes, and snippets.

@cogentParadigm
Created January 29, 2013 07:33
Show Gist options
  • Save cogentParadigm/4662486 to your computer and use it in GitHub Desktop.
Save cogentParadigm/4662486 to your computer and use it in GitHub Desktop.
Migrations
<?php
/*********************************************************
* we can add a uri by calling the uri function:
* $this->uri("[path]", "[property1]:[value1] [property2]:[value2]");
*
* setting the path to "my-new-page" will mean that the page
* can be accessed at the url /my-new-page
********************************************************/
$this->uri("my-new-page");
/*********************************************************
* By default, the page will be accessible to everyone,
* we can restrict to users in the admin group by adding a groups parameter.
********************************************************/
$this->uri("secret-sauce", "groups:admin");
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment