How does php support <% eachlistasvo %>?

Source: Internet
Author: User
Tags parse error what php
How does php support & lt; % eachlistasvo % & gt? I locally use phpstudy to build an environment. programs downloaded from the Internet can run locally. In fact, a content list is read in this way.
<%each list as vo%>
  • ">" />

    <%vo.goods_name%>

    <%vo.goods_brief%>

    ¥<%vo.shop_price%>

  • <%/each%>

    The local code can be correctly recycled, but if it is placed on the server, the error 500 will be reported! What is this?
    This statement looks like angulajs. Why does the server support this?


    Reply to discussion (solution)

    Enable the asp syntax component of php

    How to enable it ??

    Enable the asp syntax component of php

    How to enable it ??

    This is the template engine method. When an error is displayed on the server, you can see where the error is returned.

    This is the template engine method. When an error is displayed on the server, you can see where the error is returned.


    The error message is the line starting with <% each list as vo %>. I don't know if this is angulajs or something. I am using the mobile phone version of ecshop, I am doing a good job of local previewing, but it won't work if I put it on the server. I don't know where it is missing.

    This is the template engine method. When an error is displayed on the server, you can see where the error is returned.


    This artTemplate engine is used ....

    ArtTemplate is a js template engine.
    You need to check whether it is loaded on the page

    ArtTemplate is a js template engine.
    You need to check whether it is loaded on the page


    The local file is loaded. the 500 error occurs when the file is uploaded to the server. if you do not know where to configure the file, the engine syntax cannot be parsed.

    Enable the php error display function to see what php reports
    Error 500 is unfriendly!

    Enable the php error display function to see what php reports
    Error 500 is unfriendly!


    The first error is: PHP Parse error: syntax error, unexpected T_LIST in C: \ virtualhost \ www \ mobile \ include \ libraries \ EcsTemplate. class. php (1005): eval () 'd code on line 4

    The second error is: PHP Parse error: syntax error, unexpected T_LIST in C: \ virtualhost \ www \ mobile \ data \ caches \ compiled \ vip_list.lbi.php on line 4

    Check the lines indicated by the error message.

    Check the lines indicated by the error message.


     
     
      
     

    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.