|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
samtron Smarty n00b
Joined: 21 Dec 2006 Posts: 1
|
Posted: Thu Dec 21, 2006 8:39 pm Post subject: Oshibka v SMARTY??? sections |
|
|
Zdravsvuite.
Zadacha banal'naya, no ne rabotaet korrektno.
Zadacha vivesti ARRAY nachinaya s 30 elementa polnoct'u.
Dannii primer NE VIVODIT poslednii element.
i eche kak sdelat' viborku ot nachala do 30 elementa?
versiya smarty poslednyaa stabilnaya *.16
php:
..
$letters[30]=array("letter"=>"?");
$letters[31]=array("letter"=>"?");
$letters[32]=array("letter"=>"?");
$letters[33]=array("letter"=>"?");
$letters[34]=array("letter"=>"?");
$letters[35]=array("letter"=>"?");
$tpl->assign("letters", $letters);
$tpl->display('index.tpl');
template:
<div id="letters">
{section name=letter loop=$letters start=28}
<a href="{$smarty.section.letter.index}.html">{$letters[letter].letter}</a>
{/section}
</div> |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|