- Drupal 8 Module Development
- Daniel Sipos
- 194字
- 2021-07-02 12:22:35
Forms
Unless your site has three pages and five paragraphs of text, the likelihood that you will need to capture user input via some type of form is very high. Also, if you've been coding PHP applications you know how forms have always been a pain from the point of view of securely and efficiently rendering and processing the submitted data. As soon as you use a PHP framework such as Symfony or Laravel, you will note that an API is in place to take much of that load off your shoulders.
The same goes with Drupal 8 and its powerful Form API. Historically, it has been a great abstraction over having to output your own form elements and deal with posted values. It allows you to define your own form definition in OOP and handle validation and submission in a logical way. Its rendering and processing is taken care of by Drupal securely, so you don't have to worry about any of that. In Drupal 8, theming form elements has become much easier than in previous versions.
In this book, we will encounter some forms and see how they actually work in practice.
- Python自動化運(yùn)維快速入門(第2版)
- 算法大爆炸:面試通關(guān)步步為營
- Instant 960 Grid System
- Production Ready OpenStack:Recipes for Successful Environments
- jQuery從入門到精通 (軟件開發(fā)視頻大講堂)
- 嚴(yán)密系統(tǒng)設(shè)計:方法、趨勢與挑戰(zhàn)
- 量化金融R語言高級教程
- Python忍者秘籍
- JavaScript程序設(shè)計(第2版)
- 機(jī)器學(xué)習(xí)微積分一本通(Python版)
- 零基礎(chǔ)學(xué)Python編程(少兒趣味版)
- Java核心編程
- Android從入門到精通
- Office VBA開發(fā)經(jīng)典:中級進(jìn)階卷
- 米思齊實戰(zhàn)手冊:Arduino圖形化編程指南