We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(6)
几个月前,我的一个项目需要类似的东西,但必须自己构建一个。您可以浏览源代码并下载帮助程序 https://github.com/mawuli- ypa/Php-html-class。示例:
表单:
这是一个实验性的助手,但非常有用。该助手将很快更新。
I needed something similar for a project some months ago, but had to build one myself. You can browse the source code and download the helper at https://github.com/mawuli-ypa/Php-html-class. Example:
Forms:
This was an experimental helper but was quite useful. The helper will be updated soon.
这是我们在所有网站上使用的:CodeIgniter form_heper
This is what we use for all our websites: CodeIgniter form_heper
我想推荐 ATK UI 中的 Form 类。该课程旨在实现以下目标:
(更多信息文档)
该实现不依赖于任何特定的全栈框架,因此可以在任何PHP项目中使用。还有也集成到wordpress。
I'd like to recommend Form class from ATK UI. The class aims to do the following:
(more info in the doc)
The implementation is not tied into any specific full-stack framework, so can be used in any PHP project. There is integration into wordpress too.
来自 Zend 框架的 Zend_Form。也许并不简单但功能强大。我认为不存在简单的类,因为整体形式可能变得非常复杂。
Zend_Form from the Zend Framework. Maybe not exactly simple yet powerful. I think there is no simple class because forms overall can become very complex.
表格很复杂……它们就是如此。你从简单开始,然后你意识到你需要约束和验证。然后您意识到一个字段的可用性取决于另一字段的值,依此类推。如果您需要的只是简单性,那么编写您自己的表单字段标记并编写一些 PHP 来处理输入就不需要花费太多精力。这就是最简单的事情了。
Forms are complicated... they just are. You start simple and then you realize you need constraints and validation. Then you realize that the availability of one field depends on the value of another, and so on. If all you need is bare simplicity, then it shouldn't take much effort to write your own form field tags and write some PHP to process the input. That is about as simple as it's going to get.
我一直在使用这个库并且它工作得很好。
http://helpers.theframework.es/helper-form/examples/
I have been using this library and it works fine.
http://helpers.theframework.es/helper-form/examples/