Example #1
0
 public function build(Client $client, Form $form)
 {
     $output = '';
     foreach ($form->serialize() as $key => $value) {
         $output .= '<input type="hidden" name="' . $key . '" value="' . $value . '">';
     }
     return $output;
 }
Example #2
0
 public function build(Client $client, Form $form)
 {
     return $client->buildUrl($form->getPath()) . '?' . http_build_query($form->serialize());
 }