Is there a PHP HTML tag library?

Is there a PHP HTML tag library for executing server side HTML tags? Java and ASP.NET have these, but they are compiled by langs vs. scripted. For example, in ASP.NET you define a text box control using this:

<asp:TextBox /> 

And you can refer to the server side and assign properties, etc. There was no certainty whether such an opportunity existed for PHP. Thanks.

+4
source share
2 answers

There is no built-in way to do this, but template systems can add similar features. I personally use Smarty . This is not exactly the same, but it seems.

For example, checkboxes:

 { html_checkboxes name="foo" } 

Or date picker

 { html_select_date time=$some_unix_timestamp } 

It is also easy to extend it with plugins

+3
source

Some structures have some implementations of this approach, for example. form helper in CodeIgniter or view helpers within Zend.

+3
source

All Articles