Smarty Variable Regulator invalidation solution, Smarty variable adjuster _php Tutorial

Source: Internet
Author: User

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

  • Related Article

    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.