Phpcmsv9 secondary development-Application of form class form. class. php-PHP development

Source: Internet
Author: User
The phpcmsv9 system class library has a form class that encapsulates some form components, such as the editor, Image Upload, time selector, and template selector. For more information, see form. class. php. With these components, the secondary development of phpcmsv9 is more time-saving and worry-free. What we need to do is how to call these tools. There are two methods to call. I. View call method this method is the simplest but has limitations. When the Model Definition field is in the background, select the form type to generate the corresponding form type. II, Phpcms v9The system library contains a form class, which encapsulates some components of the form, such as the editor, Image Upload, time selector, and template selector. For more information, see form. class. php. With these components, the secondary development of phpcms v9 is more time-saving and worry-free. What we need to do is how to call these tools. There are two methods to call.


I. View call Method
This method is the simplest but has limitations. When the Model Definition field is in the background, select the form type to generate the corresponding form type.


Ii. Code call Method
This method is flexible and out of the restrictions of the content module. The following is a method for adding information to the Controller of the football module. See the Code:
Form class location: libs \ classes -- form. class. php


Public function addfbteam () {$ levels = $ this-> level-> select ('', ''id', 'level','', 'id '); if (isset ($

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.