supertpl 只能循环遍历数组,没有for等对单个变量的循环?

解决方案 »

  1.   


    for( $i = 0; $i < 10; $i++ )
    {
        echo $i;
    }
      

  2.   

    谢了,不是用php模板,
    html模板下,怎么写,你个的代码不行。
    Template Error: ctrlToStr: class 'for($i=0;$i' is not defined.
    Halted.
      

  3.   

    supertpl,   html 模板
      

  4.   

    supertpl 只有repeater可以循环吗,这个是针对数组的,实现简单的for循环也要构造数组,太不爽了吧。