Skip to content

Instantly share code, notes, and snippets.

@jawngee
Created July 14, 2009 02:54
Show Gist options
  • Save jawngee/146672 to your computer and use it in GitHub Desktop.
Save jawngee/146672 to your computer and use it in GitHub Desktop.
<?
$input=Input::Get();
if ($input->has('name','age','sex'))
{
$profile=Model::Instance('profiles.profile');
$profile->name=$input->name;
$profile->age=$input->get_num('age');
$profile->save();
}
else
throw new InvalidParametersException("Required form variables missing.");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment