Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 231 Pomógł: 2 Dołączył: 2.08.2006 Skąd: Poznań Ostrzeżenie: (10%)
|
Witam,
w jakis sposób za pomocą pętli w smartach stworzyć dwie kolumny. Zademonstruje to na przykładzie: w jakis sposób wywołać smarty aby stworzyć dwie kolumny róznych danych. |
|
|
|
![]() |
Post
#2
|
|
|
Grupa: Zarejestrowani Postów: 13 Pomógł: 0 Dołączył: 18.08.2012 Ostrzeżenie: (0%)
|
Jestem początkującym w smarty i prosże o pomoc zwłaszcza jak kod z książki
http://helion.pl/ebooki/smarty-szablony-w-...marty_ebook.htm którą kupiłem wyświetla bląd przy kompilowaniu: Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "./templates/index.tpl" on line 29 "{if %tabela.index% is not odd}" - Unexpected "%"' in /home/dealer/main/pkg/cherr/luki/html/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:656 Stack trace: #0 /home/dealer/main/pkg/cherr/luki/html/smarty/libs/sysplugins/smarty_internal_templateparser.php(3139): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home/dealer/main/pkg/cherr/luki/html/smarty/libs/sysplugins/smarty_internal_templateparser.php(3204): Smarty_Internal_Templateparser->yy_syntax_error(40, '%') #2 /home/dealer/main/pkg/cherr/luki/html/smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(40, '%') #3 /home/dealer/main/pkg/cherr/luki/html/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompile('<html>??<head> ...') #4 /home/dealer/main/pkg/cherr/luki/html/smarty/libs/ in /home/dealer/main/pkg/cherr/luki/html/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 656 jeśli wykasuję instrukcję {if %tabela.index% is not odd} to działa jak należy co tu jest nie tak (IMG:style_emoticons/default/questionmark.gif)
|
|
|
|
user123 [smarty] Wyświetlanie co drugiego wyniku w pętli 11.06.2009, 22:38:59
karolrynio Możesz spróbować czegoś takiego:
Kod<table... 25.06.2009, 06:55:24
nmts [HTML] pobierz, plaintext <table>{section na... 27.06.2009, 19:04:22
nospor Cytatjeśli wykasuję instrukcję {if %tabela.index% ... 24.08.2012, 14:57:43 ![]() ![]() |
|
Aktualny czas: 26.12.2025 - 16:56 |