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 2 matches
Smarty Forum Index
Author Message
  Topic: Why {if isset($var)} uses ob_start and echo?
yor.gor

Replies: 0
Views: 4890

PostForum: General   Posted: Tue May 21, 2013 4:48 pm   Subject: Why {if isset($var)} uses ob_start and echo?
Hi all, I have this template:
{foreach $serviceList as $service}
{if isset({$service->src})}
///do smth using $service->src
{/if}
&# ...
  Topic: Value of the $content for the opening block function
yor.gor

Replies: 0
Views: 16501

PostForum: Feature Requests   Posted: Wed Feb 06, 2013 3:44 pm   Subject: Value of the $content for the opening block function
Hi?

Manual says:
The value of the $content variable depends on whether your function is called for the opening or closing tag. In case of the opening tag, it will be NULL, and in case of the clos ...
 
Page 1 of 1
All times are GMT
Jump to:  


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