How to call the method in the. dwt file in ecshop? what is the code?

Source: Internet
Author: User
In ecshop, how does one call the method in the. dwt file? what is the code? In ecshop, how does one call the method in the. dwt file? what is the code? Is it in. dwt? Function & nbsp; a () {$ smarty-& gt; assign ('A', $ a); $ smarty-& gt; display ('. in ecshop. what is the code for calling methods in the dwt file?
In ecshop, how does one call the method in the. dwt file? what is the code? Is it in. dwt?
Function a () {$ smarty-> assign ('A', $ a); $ smarty-> display ('. dwt ');}
I just want to know how to call this method a IN. dwt.
------ Solution --------------------

Function (){
$ Smarty-> assign ('A', $ a); // is smarty assigned to the template? If yes, the view of this framework uses smarty.
$ Smarty-> display ('. dwt'); // if it is smarty, it is only. dwt. I am afraid it is incorrect. go to the display function of smarty,
// A is not a method, but a variable. in dwt, a is a variable, but not a global variable, but a variable of smarty ,. for a view file of the dwt type, smarty converts it to a php file. you search for all the php files under your server. if the file name is too long, % is the converted file. open it and see, search for a bucket similar to _ tpl_var (I forgot) and find out what is going on.
}

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.