|
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 |
Grizzly Smarty Pro
Joined: 15 Apr 2011 Posts: 172 Location: Germany
|
Posted: Wed Sep 12, 2012 11:05 am Post subject: |
|
|
hast du mal versucht die section ohne variablen zu machen?
Also z. B. so:
Code: |
{section name=test start=0 loop=5 step=+1}
{$smarty.section.test.index_next}
{/section}
|
Klappt das?
Was du vllt auch versuchen solltest, der section nicht den Namen "tabelle" sondern iwie navi oder so zu geben. Kann ja sein, dass es dadurch durcheinander kommt, da du auch eine Variable namens $tabelle hast.... |
|
Back to top |
|
michaelj Smarty Regular
Joined: 20 May 2010 Posts: 40 Location: NRW
|
Posted: Wed Sep 12, 2012 12:00 pm Post subject: |
|
|
ja ohne klappt es, leider nicht mit, und sehe nicht wo die daten verloren gehen könnten. bzw die werte in den var stimmen ja wenn ich die ausgeben lasse.
und die änderung des section namens hatte ich auch angepasst, das bewirkt auch wieder nichts.
tja sowas nennt man das bermuda dreieck der smarty enginge was ich habe |
|
Back to top |
|
Grizzly Smarty Pro
Joined: 15 Apr 2011 Posts: 172 Location: Germany
|
Posted: Wed Sep 12, 2012 12:53 pm Post subject: |
|
|
Kann es vllt an dem ceil liegen?
probier mal statt:
Code: | ceil($total/$itemsPerPage) |
sowas hier:
und gib es aus. Klappt es, dann musst du wohl das aufrunden wo anders übernehmen (z. B. in der PHP-Datei) ansonsten weiß ich auch nicht weiter.
Was für eine Smarty-Version verwendest du denn?
Wie gesagt notfalls können wir eine TeamViewer Session starten, wenn du willst! |
|
Back to top |
|
michaelj Smarty Regular
Joined: 20 May 2010 Posts: 40 Location: NRW
|
Posted: Wed Sep 12, 2012 1:05 pm Post subject: |
|
|
so hab die lösung gefunden
er peilt das ceil nicht, habs nun in der php umgerechnet und dann weitergegeben...
werd die lösung komplett noch posten falls andere auch probleme damit haben
grizzly !!! danke !!! für deine geduld |
|
Back to top |
|
Grizzly Smarty Pro
Joined: 15 Apr 2011 Posts: 172 Location: Germany
|
Posted: Wed Sep 12, 2012 1:16 pm Post subject: |
|
|
Dann ist ja gut, habe mir schon gedacht dass es vllt wegen dem ceil nicht funktioniert. Habe mich im obigen Beitrag verschrieben meinte natürlich:
Klappt es nicht, dann musst du wohl das aufrunden wo anders übernehmen (z. B. in der PHP-Datei)
Dann bin ich ja froh, dass ich dir helfen konnte |
|
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
|