官术网_书友最值得收藏!

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, 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 render 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 have become much easier than in previous versions.

In this book, we will encounter some forms and see how they actually work in practice.

主站蜘蛛池模板: 天峻县| 永宁县| 泰州市| 岳池县| 古蔺县| 江西省| 克什克腾旗| 新邵县| 桓台县| 馆陶县| 鄯善县| 商河县| 勃利县| 昭觉县| 瓦房店市| 凤山市| 兴国县| 岫岩| 上饶县| 萨嘎县| 方城县| 平罗县| 五河县| 五峰| 北辰区| 沈丘县| 瑞金市| 赤水市| 湾仔区| 历史| 永济市| 灵丘县| 合肥市| 鄱阳县| 濉溪县| 深州市| 阿克| 玉屏| 疏勒县| 个旧市| 嵊州市|