What are the variables in the {dede: php} tag? Solution

Source: Internet
Author: User
What are the variables in the {dede: php} tag? {Dede: php} & nbsp; $ cf = 'abc'; {/dede: php} & nbsp; {dede: php} // $ cf = 'abc '; & nbsp; echo '& lt; li & gt ;'. $ cf. '& lt;/li & gt;'; {dede: php} is the variable in the two fields different?
{Dede: php}
$ Cf = 'abc ';
{/Dede: php}


{Dede: php}
// $ Cf = 'abc ';
Echo'
  • '. $ Cf .'
  • ';
    {/Dede: php}



    As shown above, if $ cf is defined in another {dede: php} tag segment, the value of $ cf cannot be reached in the tag segment below. Are there two tags?

    Not generic?

    My goal is:

    {Dede: php} if (condition 1)
    {
    {/Dede: php}

    Here is the {dede: list} tag

    {Dede: php}
    }
    Else
    {
    {/Dede: php}

    Here is another {dede: list} tag


    {Dede: php}
    }
    {/Dede: php}


    That is, other labels are dynamically loaded based on judgment.

    ------ Solution --------------------
    Global?
    ------ Solution --------------------
    It can only be passed through javascript.
    JScript code
     
    

    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.