Skip to content

Instantly share code, notes, and snippets.

@jaggy
Created March 19, 2014 23:21
Show Gist options
  • Save jaggy/9653701 to your computer and use it in GitHub Desktop.
Save jaggy/9653701 to your computer and use it in GitHub Desktop.
Just a quick setup for everything
<?php
class SetupShell extends AppShell{
function main(){
system('./Console/cake acl create aco root controllers');
system('./Console/cake AclExtras.AclExtras aco_sync');
$handle = curl_init();
curl_setopt($handle, CURLOPT_URL, 'http://dev:3000/setup');
curl_exec($handle);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment