i want to show db values as dropdown list in a table...but i am not able to do the same...can anyone help??
below is my code
<tr>
<td>{{ table.id }}</td>
<td>{{ table.name }}</td>
<td> {{ select("name","role","using": ["id", "name"])}} </td>
<td width="7%">{{ radio_field("access", "value": "grant") }} Grant </td>
<td width="7%">{{ radio_field("access", "value": "deny") }} Deny </td>
</tr>
when i tried the above code ... iam got the following error...
Invalid data provided to SELECT helper
#0 [internal function]: Phalcon\Tag\Select::selectField(Array, NULL)
#1 C:\wamp64\www\project\cache\volt\c%%%%wamp64%%www%%corporate_reimbursement%%app%%views%%permission%%assign.volt.php(26): Phalcon\Tag::select(Array)
#2 [internal function]: unknown()
#3 [internal function]: Phalcon\Mvc\View\Engine\Volt->render('C:\\wamp64\\www\\c...', Array, true)
#4 [internal function]: Phalcon\Mvc\View->_engineRender(Array, 'permission/assi...', true, true, NULL)
#5 [internal function]: Phalcon\Mvc\View->render('permission', 'assign', Array)