Skip to content

Instantly share code, notes, and snippets.

@veb

veb/untitled Secret

Created January 28, 2015 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veb/27fb8748ad608b45d845 to your computer and use it in GitHub Desktop.
Save veb/27fb8748ad608b45d845 to your computer and use it in GitHub Desktop.
kingy2
// controller
function foo() {
return "Sup bro";
}
// view
echo "Hey long time no see $foo";
# or we could do:
// controller
function fooArray() {
return new ArrayData(array("foo1" => "I am a bum", "foo2" => "vebby"));
}
// view
echo "fooArray.foo1 but fooArray.foo2 is my best buddy evar";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment