When calling the U method in an html template, why do I have to add {:} before? What does this mean? {: U (& #039; Paymentindex & #039;, array (& #039; order_id & #039; & amp; gt; 223 ))} when calling the U method in an html template, why do I have to add {:} before? What does this mean?
{: U ('payment/Index', array ('order _ id' => 223 ))}
Reply content:
When calling the U method in an html template, why do I have to add {:} before? What does this mean?
{: U ('payment/Index', array ('order _ id' => 223 ))}
Call the U () function of thinkphp to generate the url
{: U ()} Is the template engine of thinkphp. It will recognize {: function name ()} and then call the U function.
{: U ('payment/Index', array ('order _ id' => 223 )}
223)?>
The U function is prototype:
Function U ($ url, $ vars = '', $ suffix = true, $ domain = false)
Template identifier, which is the same as {And} in smarty.
To use functions in the tp template, you must call functions in the form of {: function ()}.