searchForm() 공개 정적인 메소드

Generates a search form.
public static searchForm ( mixed $action, string $method = 'post', array $htmlOptions = [] ) : string
$action mixed the form action URL.
$method string form method (e.g. post, get).
$htmlOptions array additional HTML options.
리턴 string the generated form.
예제 #1
0
 public function testSearchForm()
 {
     $I = $this->codeGuy;
     $html = TbHtml::searchForm('#', 'post', array('class' => 'form'));
     $form = $I->createNode($html, 'form.form-search');
     $I->seeNodeCssClass($form, 'form');
     $I->seeNodeAttributes($form, array('action' => '#', 'method' => 'post'));
     $input = $form->filter('input[type=text]');
     $I->seeNodeCssClass($input, 'search-query');
 }