Skip to content

Instantly share code, notes, and snippets.

@jedateach
Created June 13, 2012 00:16
Show Gist options
  • Save jedateach/2920959 to your computer and use it in GitHub Desktop.
Save jedateach/2920959 to your computer and use it in GitHub Desktop.
Basic controller
<?php
class MyController extends Controller{
static $url_segment = 'mycontroller';
function Link($action = ""){
return Controller::join_links(self::$url_segment,$action);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment