Remove a function from the original frame file. The problem is that you don't know how to invoke it.

Source: Internet
Author: User
Remove a function from the original frame file: The problem is not knowing how to invoke ...
function Appformpls ($param) {
...
...
...
Tpl::module (' Appform ', Array (' event ' = = $event, ' list ' = $list));


As above, it was originally a bunch of function files in the framework file. Now don't use frames, just use this one function,

However, but do not know how to call .... Giant Khan .... Don't throw me tomatoes, humbly first.

Now I include the corresponding appform.php of this function directly in index. But this file requires an array of two variables defined in this function.

Well, the main thing is not to know the last line TPL:: What is the story,, to remove the document, how to deal with this sentence. Does the function still stand alone as a file? What statement is used to invoke a function if you don't use include in index?


I know I should learn from the basic, but I am a small aser with PHP so once, beg you shrimp to force

------Solution--------------------
Appformpls This is the class you're going to use.
Appformpls This is the method in the class.

Tpl::module (' Appform ', Array (' event ' = = $event, ' list ' = $list,));

is not the IDE editing tool is the word CTRL mouse click on the TPL will be able to go into that file. See what it is, the basic may need to include this file. No need for new. I thought I was going to ask what the function was.
------Solution--------------------
Explore

Well then ask another ... Is the include class file in front of index header better, or is the include class file in body? The various ways of writing in Jane's case are so 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.