Home > Backend Development > PHP Tutorial > ecshop smarty template

ecshop smarty template

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-04 09:21:47
Original
2114 people have browsed it


{if $k lt 3}

  •  {$goods.name|escape:html}



  • I want to modify a page of ECShop. I don’t understand the code marked by Smarty on it. Can anyone give me some advice?

    Reply content:


    {if $k lt 3}

  •  {$goods.name|escape:html}



  • I want to modify a page of ECShop. I don’t understand the code marked by Smarty on it. Can anyone give me some advice?

    "" This is the start and end tag of the smarty template (it is customized like this here). Needless to say, foreach traverses the array, and from represents the array source to be traversed (i.e. $ my_cat_rec_goods[32] this array), item is equivalent to the value in the array, key is equivalent to the key, lt means less than, {if $k lt 3} means that when the key value is less than 3, place a pair of

  • < /li> tag, put a picture in the li tag, {$goods.thumb} represents the thumb column of a certain value in the array $my_cat_rec_goods[32] (this value is also an array)

  • Related labels:
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template