public static string select (array $parameters, [array $data])
Builds a HTML SELECT tag using a Phalcon\Mvc\Model resultset as options
1 2 3 4 5 | echo Phalcon\Tag::select([ "robotId" , Robots::find( "type = " mechanical "" ), "using" => [ "id" , "name" ] ]); |
Volt syntax:
1 | {{ select( "robotId" , robots, "using" : [ "id" , "name" ]) }} |
Please login to continue.