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 6 matches
Smarty Forum Index
Author Message
  Topic: Does Smarty v2 support arrays without PHP assign?
jsherk

Replies: 0
Views: 71167

PostForum: General   Posted: Thu May 19, 2022 7:27 pm   Subject: Does Smarty v2 support arrays without PHP assign?
It is very unclear to me if arrays are supported in Smarty v2 or not.

The only reference I can seem to find involves assigning them from PHP.

Is it possible to create an array in Smarty 2 from w ...
  Topic: String operators - Adding strings - Concatenate strings
jsherk

Replies: 2
Views: 14365

PostForum: General   Posted: Sun Jan 23, 2011 6:32 pm   Subject: String operators - Adding strings - Concatenate strings
Just wondering if smarty 3 has included any improvements for string operators (adding strings together).

In PHP I would do this:
$my_string = 'Hello ';
$my_string = $my_string.'World';
echo $my_ ...
  Topic: isset() smarty 3
jsherk

Replies: 6
Views: 24198

PostForum: General   Posted: Fri Jan 14, 2011 7:16 pm   Subject: isset() smarty 3
Oh I see it now.. thank you!

I tested it as well and adding a space at the end before the } does cause an error! Is that a bug?
  Topic: isset() smarty 3
jsherk

Replies: 6
Views: 24198

PostForum: General   Posted: Fri Jan 14, 2011 6:33 pm   Subject: isset() smarty 3
I do not see a difference... what did you change?

Thanks
  Topic: foreachelse does not seem to work
jsherk

Replies: 2
Views: 5218

PostForum: General   Posted: Tue Dec 14, 2010 3:37 am   Subject: foreachelse does not seem to work
Ok, I understand!

Values of FALSE and of "" (blank string) are NOT the same as being NULL or EMPTY.

A suggestion for the smarty docs would be that it actually makes that statement abou ...
  Topic: foreachelse does not seem to work
jsherk

Replies: 2
Views: 5218

PostForum: General   Posted: Tue Dec 14, 2010 3:05 am   Subject: foreachelse does not seem to work
Here is a simple example of a problem I am having, where the variable sent to smarty template is empty but the foreachelse does not seem to work.

Here is a sample template file:
{if ''==$RESU ...
 
Page 1 of 1
All times are GMT
Jump to:  


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