-
-
Save veb/27fb8748ad608b45d845 to your computer and use it in GitHub Desktop.
kingy2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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