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 ..