Skip to content

Instantly share code, notes, and snippets.

@odino
Created September 4, 2010 11:31
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 odino/565118 to your computer and use it in GitHub Desktop.
Save odino/565118 to your computer and use it in GitHub Desktop.
<?php
// inside a controller
// using POST
$object = new Object();
$object->fromArray($request->getPostParameters());
// using PUT
$object = new Object();
$object->fromArray($request->getPostParameters());
# WORKS using ->getPOSTParameters()... WTF?!?!?!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment