AdamWathan\Form\Elements\FormOpen::put PHP 메소드

put() 공개 메소드

public put ( )
    public function put()
    {
        return $this->setHiddenMethod('PUT');
    }

Usage Example

예제 #1
0
 public function testRenderPutFormOpen()
 {
     $form = new FormOpen();
     $expected = '<form method="POST" action=""><input type="hidden" name="_method" value="PUT">';
     $result = $form->put()->render();
     $this->assertEquals($expected, $result);
 }