Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 9 matches
Smarty Forum Index
Author Message
  Topic: [gelöst] funciton hmtl_image -> max height/width
Wajpas

Replies: 0
Views: 285

PostForum: Language: German   Posted: Tue Jan 05, 2021 5:54 pm   Subject: [gelöst] funciton hmtl_image -> max height/width
Nabend Leute...

So ich hab mich nun durch google und durch viele viele englishe Postings hier gearbeitet, aber irgendwie geht das alles nicht... vllt kann mir wer das mal in Deutsch vermitteln hier ...
  Topic: foreach with more than 1 array?
Wajpas

Replies: 5
Views: 167

PostForum: General   Posted: Tue Dec 29, 2020 12:40 pm   Subject: foreach with more than 1 array?
Please double-check the spelling of {/foreach}.

If there is doubt that the $note_rows has any data, have PHP do a var_dump() of it.

ok... damn writing Laughing
just foreache without "ending- ...
  Topic: foreach with more than 1 array?
Wajpas

Replies: 5
Views: 167

PostForum: General   Posted: Mon Dec 28, 2020 9:42 pm   Subject: foreach with more than 1 array?
ok, first thx for your help.

Tried this now but it dosn't work - shows nothing now:

PHP:
$mess = "SELECT * FROM ".$pre."_notice WHERE `start_time` <= '$today' ";
$mess_ ...
  Topic: foreach with more than 1 array?
Wajpas

Replies: 5
Views: 167

PostForum: General   Posted: Sun Dec 27, 2020 3:14 pm   Subject: foreach with more than 1 array?
HEy folks,

another foreach-question:

got {foreach} already working for ONE listing. But now i read out a mysql-table and put it in more than one array. For sure i looked at thoses arrays and it ...
  Topic: foreach only displays last item
Wajpas

Replies: 7
Views: 2063

PostForum: General   Posted: Mon Nov 09, 2020 7:38 pm   Subject: foreach only displays last item
Thank you verry much...

your code is working how it should!
Helps me verry much!!!

Thank you!
  Topic: foreach only displays last item
Wajpas

Replies: 7
Views: 2063

PostForum: General   Posted: Thu Nov 05, 2020 4:09 pm   Subject: foreach only displays last item
So here it is, the php-script:


//Auslesescript
$verzeichnis = "./templates/"; // Auszulesendes Verzeichnis
$sortierung = "0"; // Sortierung ("0"=A-Z, "1&q ...
  Topic: foreach only displays last item
Wajpas

Replies: 7
Views: 2063

PostForum: General   Posted: Thu Nov 05, 2020 12:06 am   Subject: foreach only displays last item

Could it be that the page real estate given to show this output is too short to show all but the bottom of the list?

It's an idea, but no - it's just relativ to the text i want to show...
If i ...
  Topic: foreach only displays last item
Wajpas

Replies: 7
Views: 2063

PostForum: General   Posted: Wed Nov 04, 2020 9:58 pm   Subject: foreach only displays last item
Yes, i know...

Surely print_r displays the same, but inside that foreach loop in php to read out thoese files on the server, which end with ".tpl", echo works as well to display Wink
...
  Topic: foreach only displays last item
Wajpas

Replies: 7
Views: 2063

PostForum: General   Posted: Wed Nov 04, 2020 5:09 pm   Subject: foreach only displays last item
Hey folks,

it's my first project with smarty so be gentle Wink

My Problem is, that my foreach only displays the last item of an array:

So my PHP-code:
$smarty->assign('file_arr',$filein ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP