2 types of dropdown menu question


I am not sure I understand correctly the manual here:


How to add a simple pre-populated dropdown list in my form


How to add a dropdown list populated from the database?

I have managed to create one but it is not an input feld…

<div class="dropdown">

    <a href="#" data-toggle="dropdown" class="dropdown-toggle">Label <b class="caret"></b></a>


        echo Dropdown::widget([

            'items' => [

                ['label' => 'DropdownA', 'url' => '/'],

                ['label' => 'DropdownB', 'url' => '#'],





Thank you so much.