Smarty variable regulator failure resolution, Smarty variable regulator
Smarty variable regulator is a good thing, has been used in handy, can be used yesterday when the variable regulator found no use.
Copy the Code code as follows:
{$name | upper}
Carefully read the manual, looked at the Smarty loading path, up and down for nearly one hours and did not find the problem. is about to get into a helpless predicament, the code was deleted and rewritten
Copy the Code Code as follows: {$name |upper}
The result is good. The original is the variable to be directly followed by the vertical line, function name, the middle can not have spaces, otherwise the function of the variable regulator will be invalidated. Noisy for a long time, the original is a space caused by, too unworthy when!!!
It seems that after the Smarty program, you have to pay attention to the space problem ~, perhaps other problems may be caused by the space, and the space caused by the most difficult to find the problem.
Smarty The problem of defining variables
There are two types of no area.
Php+smarty development of the addition of my brother is a novice everyone QQ 544630057 We urgently need you heroes to help
Very simple, you can see the smary template manual will know!
http://www.bkjia.com/PHPjc/866673.html www.bkjia.com true http://www.bkjia.com/PHPjc/866673.html techarticle smarty Variable Regulator failure solution, Smarty variable regulator smarty variable regulator is a good thing, has been used handy, can be used yesterday when the variable regulator found ...