A function is disassembled from the original framework file. The problem is that you do not know how to call the function.

Source: Internet
Author: User
Split a function from the original framework file .. the problem is that I don't know how to call it... functionappFormPls ($ param) {& nbsp ;... & nbsp ;... & nbsp ;... TPL: module (appform, array (event & gt; $ event detaches a function from the original framework file .. the problem is that I don't know how to call it...
Function appFormPls ($ param ){
...
...
...
TPL: module ('append', array ('event' => $ event, 'list' => $ list ));


As shown above, it was originally a bunch of function files in the framework file. Currently, you only need to use this function if you do not use the framework,

However, I don't know how to call it.

Now I directly INCLUDE the APPFORM. PHP corresponding to this function in the index. However, this file requires two variable arrays defined in this function.

Well, I don't know the last line of TPL: What is the header? how do I deal with this sentence when splitting the file? is the function still a single file? If include is not used in the index, what statements are used to call the function?


I know I should start from the basics, but I use PHP for a small ASER.

------ Solution --------------------
Appformpls this is the class you want to use
AppFormPls: this is the method in the class.

TPL: module ('append', array ('event' => $ event, 'list' => $ list ,));

If the ide editing tool is correct, press ctrl and click TPL to enter the file. look at what it is. you may need to include this file again. I don't need new features.
------ Solution --------------------
Discussion

Then let's ask again... is it better to INCLUDE the class file before the HEADER of the INDEX, or is it better to inCLUDE the class file in the BODY? The writing methods in this example are too confusing ..

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.