Skip to content

Instantly share code, notes, and snippets.

@rizqidjamaluddin
Last active August 29, 2015 14:11
Show Gist options
  • Save rizqidjamaluddin/6e70a2b5b6f3f49e4ec5 to your computer and use it in GitHub Desktop.
Save rizqidjamaluddin/6e70a2b5b6f3f49e4ec5 to your computer and use it in GitHub Desktop.
<?php
class CakeController {
public function createOrder() {
$cake = new Cake();
$cake->isFor(Input::get('customer'));
$cake->addFlavor(Input::get('flavor'));
$cake->bake();
$cake->save();
return $cake;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment