Tag::setDefault

public static setDefault (string $id, string $value) Assigns default values to generated tags by helpers // Assigning "peter" to "name" component Phalcon\Tag::setDefault("name", "peter"); // Later in the view echo Phalcon\Tag::textField("name"); //Will have the value "peter" by default

Tag::setDefaults

public static setDefaults (array $values, [mixed $merge]) Assigns default values to generated tags by helpers // Assigning "peter" to "name" component Phalcon\Tag::setDefaults(array("name" => "peter")); // Later in the view echo Phalcon\Tag::textField("name"); //Will have the value "peter" by default

Tag::resetInput

public static resetInput () Resets the request and internal values to avoid those fields will have any default value

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"]) }}

Tag::searchField

public static string searchField (array $parameters) Builds a HTML input[type=”search”] tag

Tag::renderAttributes

public static renderAttributes (mixed $code, array $attributes) Renders parameters keeping order in their HTML attributes

Tag::rangeField

public static string rangeField (array $parameters) Builds a HTML input[type=”range”] tag

Tag::numericField

public static string numericField (array $parameters) Builds a HTML input[type=”number”] tag echo Phalcon\Tag::numericField(array("price", "min" => "1", "max" => "5"));

Tag::passwordField

public static string passwordField (array $parameters) Builds a HTML input[type=”password”] tag echo Phalcon\Tag::passwordField(array("name", "size" => 30));

Tag::monthField

public static string monthField (array $parameters) Builds a HTML input[type=”month”] tag