Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 17 matches
Smarty Forum Index
Author Message
  Topic: {php} tag help
LeGaS

Replies: 2
Views: 5316

PostForum: General   Posted: Sun Aug 13, 2006 6:11 pm   Subject: {php} tag help
You should make it as a function.
http://smarty.php.net/manual/en/plugins.functions.php
  Topic: Using PHP functions in smarty
LeGaS

Replies: 4
Views: 7192

PostForum: General   Posted: Tue Jul 25, 2006 9:27 am   Subject: Using PHP functions in smarty
What about Smarty's [url=http://smarty.php.net/manual/en/language.modifier.string.format.php]string_format?
  Topic: {section} problem
LeGaS

Replies: 15
Views: 20600

PostForum: General   Posted: Mon Jul 24, 2006 7:19 pm   Subject: {section} problem
LOL, I can't believe it. It works now. ^^ Thanks boots!
  Topic: {section} problem
LeGaS

Replies: 15
Views: 20600

PostForum: General   Posted: Sun Jul 23, 2006 9:24 pm   Subject: {section} problem
Whoops, sorry! Embarassed

Array ( [1] => Ólomüvegezés ólmozott- és Tiffany technikával [2] => Tradicionális üvegfestés [3] => Olvasztott üvegek készítése [4 ...
  Topic: {section} problem
LeGaS

Replies: 15
Views: 20600

PostForum: General   Posted: Sun Jul 23, 2006 8:04 am   Subject: {section} problem
Well, here is my database table:
id name
1 Ólomüvegezés ólmozott- és Tiffany technikával
2 Tradicionális üvegfestés
3 Olvasztott üvegek készítése
4 Ezüst ékszer tervezés, kivitelezés
5 ...
  Topic: {include} and caching
LeGaS

Replies: 1
Views: 4511

PostForum: General   Posted: Sat Jul 22, 2006 12:46 pm   Subject: {include} and caching
If
$smarty->caching = true;
is in your (for example) index.php file, then it will cache every file, doesn't matter if it is included.

Or take a look at the [url=http://smarty.incutio.com/?page ...
  Topic: Section in Section
LeGaS

Replies: 4
Views: 7653

PostForum: General   Posted: Sat Jul 22, 2006 11:49 am   Subject: Section in Section
Hmm.

$mesaj_bul = mysql_query("select * from mesajlar where mesaj_id='$mesaj_id'",$link);
while ($ara = mysql_fetch_row($mesaj_bul))
{
$yazar_id = $ara& ...
  Topic: Section in Section
LeGaS

Replies: 4
Views: 7653

PostForum: General   Posted: Sat Jul 22, 2006 11:42 am   Subject: Section in Section
You have to close both {section}. I see only one {/section}.
  Topic: {section} problem
LeGaS

Replies: 15
Views: 20600

PostForum: General   Posted: Sat Jul 22, 2006 10:26 am   Subject: {section} problem
Hmm, very weird. If I remove the start=1 attribute, it displays an empty <li> tag (cause there is no item with the ID 0). But if I make a new item (ID 15) then the item before it is displayed (I ...
  Topic: {section} problem
LeGaS

Replies: 15
Views: 20600

PostForum: General   Posted: Fri Jul 21, 2006 5:41 pm   Subject: {section} problem
But I get the items from a database table and there the ID starts at 1. By the way, if I remove the start attribute, then it doesn't display the last item.

Any other ideas?
  Topic: {section} problem
LeGaS

Replies: 15
Views: 20600

PostForum: General   Posted: Fri Jul 21, 2006 12:46 pm   Subject: {section} problem
Hi!

I have a section, it looks so:
{section name=szolgaltatasok loop=$szolgaltatas start=1}
<li>{$szolgaltatas[szolgaltatasok]}</li>
{/section& ...
  Topic: <foreach> question and a php function question
LeGaS

Replies: 5
Views: 7577

PostForum: General   Posted: Fri Jul 21, 2006 9:48 am   Subject: <foreach> question and a php function question
Well, I solved it. Smile Now it uses the PEAR DB.
  Topic: <foreach> question and a php function question
LeGaS

Replies: 5
Views: 7577

PostForum: General   Posted: Thu Jul 20, 2006 3:19 pm   Subject: <foreach> question and a php function question
I have a problem with {foreach}.

index.php:
...
case 'szolgaltatasok':
$sql = 'SELECT * FROM `szolgaltatasok` ORDER BY `id` ASC';
$smarty->assign('szolgaltatas', $db->getAsso ...
  Topic: SmartyValidate 2.7 released
LeGaS

Replies: 49
Views: 295191

PostForum: Add-ons   Posted: Thu Jul 20, 2006 7:02 am   Subject: SmartyValidate 2.7 released
Thanks for your help, but I solved it in an other way. Smile It isn't possible to validate in a switch. ^^ Now I included the form and the validating, and it works!
  Topic: SmartyValidate 2.7 released
LeGaS

Replies: 49
Views: 295191

PostForum: Add-ons   Posted: Wed Jul 19, 2006 3:54 pm   Subject: SmartyValidate 2.7 released
I get this error, when try to validate a form:
Notice: SmartyValidate:
How can I fix it?
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


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