Skip to content

Instantly share code, notes, and snippets.

@makeusabrew
Created October 5, 2011 20:57
Show Gist options
  • Save makeusabrew/1265702 to your computer and use it in GitHub Desktop.
Save makeusabrew/1265702 to your computer and use it in GitHub Desktop.
Jaoss - Basic Controller
<?php
class StaticController extends Controller {
public function about() {
// any controller logic would take place here
$title = "Hello About Page!";
// assign the value of $title to the view, where it will be accessible as $pageTitle
$this->assign("pageTitle", $title);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment