public static tagHtmlClose (mixed $tagName, [mixed $useEol]) Builds a HTML tag closing tag echo Phalcon\Tag::tagHtmlClose("script", true)
public static tagHtml (mixed $tagName, [mixed $parameters], [mixed $selfClose], [mixed $onlyStart], [mixed $useEol]) Builds a HTML tag echo Phalcon\Tag::tagHtml(name, parameters, selfClose, onlyStart, eol);
public static string submitButton (array $parameters) Builds a HTML input[type=”submit”] tag echo Phalcon\Tag::submitButton("Save") Volt syntax: {{ submit_button("Save") }}
public static string stylesheetLink ([array $parameters], [boolean $local]) Builds a LINK[rel=”stylesheet”] tag echo Phalcon\Tag::stylesheetLink("http://fonts.googleapis.com/css?family=Rosario", false); echo Phalcon\Tag::stylesheetLink("css/style.css"); Volt Syntax: {{ stylesheet_link("http://fonts.googleapis.com/css?family=Rosario", false) }} {{ stylesheet_link("css/style.css") }}
public static setTitleSeparator (mixed $titleSeparator) Set the title separator of view content Phalcon\Tag::setTitleSeparator("-");
public static setTitle (mixed $title) Set the title of view content Phalcon\Tag::setTitle("Welcome to my Page");
public static setDocType (mixed $doctype) Set the document type of content
public static setDI (Phalcon\DiInterface $dependencyInjector) Sets the dependency injector container.
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
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
Page 23 of 382