|
本帖最后由 北极宫爵 于 2009-5-14 09:51 编辑
<?php foreach($city as $city_one): ?>
<div class="lil">
<div class="li_left"><?=$city_one[0]?>:</div>
<div class="li_right">
<?php foreach($city_one[1] as $city_two)?>
<div class="lis"><a href="#"><?=$city_two->classname?></a></div>
<?php endforeach;?>
</div>
</div>
<?php endforeach; ?>
这是报的错 Parse error: syntax error, unexpected T_ENDFOREACH in
我这样写的程序。报错了。想请教下。CI 里FOREACH是如何嵌套的 谢谢急`` |
|