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 ($