Answer the question
In order to leave comments, you need to log in
How to make a form like this using yii\helpers\Html?
There is a search form of the following type.
I want to pass to the controller in the actionSearch() method everything that the user submits.
How to turn this HTML:
<ul id="searchParams" class="dropdown-menu" role="menu">
<li value="1"><a href="" title="Например, someauthor">Поиск автора </a></li>
<li value="2"><a href="" title="Например, some word">Поиск публикации </a></li>
</ul>
<?php echo Html::ul($items = ['Поиск автора', 'Поиск публикации'], [
'class' => 'dropdown-menu',
'id' => 'searchParams',
'role' => 'menu',
]);
?>
Html::ul($items = ['Поиск автора', 'Поиск публикации'])
Answer the question
In order to leave comments, you need to log in
what is the problem with inserting html tags by hand? no one obliges you to write pure php code. and yes it will be right
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question