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