Tag::select

public static string select (array $parameters, [array $data])

Builds a HTML SELECT tag using a Phalcon\Mvc\Model resultset as options

echo Phalcon\Tag::select([
     "robotId",
     Robots::find("type = "mechanical""),
     "using" => ["id", "name"]
 ]);

Volt syntax:

{{ select("robotId", robots, "using": ["id", "name"]) }}
doc_Phalcon
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.