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

Search found 31 matches
Smarty Forum Index
Author Message
  Topic: syntax {$foo->function('string'.$var)}
yankee

Replies: 4
Views: 6499

PostForum: Smarty 3   Posted: Mon Oct 26, 2009 12:41 pm   Subject: syntax {$foo->function('string'.$var)}
Concat is beeing done using "&" in smarty (not by using ".").
  Topic: Smarty 3.0 and PHP 5.3
yankee

Replies: 6
Views: 14931

PostForum: Smarty 3   Posted: Sat Oct 10, 2009 10:29 pm   Subject: Smarty 3.0 and PHP 5.3
This is not new as of php 5.3. This message will appear as of php 5.0 when in error_reporting the E_STRICT flag is set.

Your application should take care of that. I don't think that your template e ...
  Topic: Default modifier
yankee

Replies: 0
Views: 3547

PostForum: Smarty 3   Posted: Tue Sep 01, 2009 6:55 pm   Subject: Default modifier
Most smarty modifiers just delegate to a php-function that gets the string that is supposed to be modified as the first argument and that's it.
It might make things easier (and will save smarty a lot ...
  Topic: smarty_modifier_nl2br
yankee

Replies: 3
Views: 5972

PostForum: Smarty 3   Posted: Tue Sep 01, 2009 6:50 pm   Subject: smarty_modifier_nl2br
Well this feature has been introduced in php 5.3, so it's quite new. There is probably no other reason why you cannot use it by default.
On the other hand <br /> will work just as well with htm ...
  Topic: exception handling
yankee

Replies: 10
Views: 21160

PostForum: Smarty 3   Posted: Fri Jul 03, 2009 3:16 pm   Subject: exception handling
You see where the questions come in "Smarty has Fatal Error" Smile
Well... This would most definitly show that the poster did not read the text in the error message since it is all there to se ...
  Topic: exception handling
yankee

Replies: 10
Views: 21160

PostForum: Smarty 3   Posted: Fri Jul 03, 2009 2:51 pm   Subject: exception handling
Please update your SVN, and then do the following:

define('SMARTY_EXCEPTION_HANDLER',0);
include('Smarty.class.php');
$smarty = new Smarty();
Well, that'll do for now. Bu ...
  Topic: exception handling
yankee

Replies: 10
Views: 21160

PostForum: Smarty 3   Posted: Fri Jul 03, 2009 2:49 pm   Subject: exception handling
Yes we have discussed just yanking the exception handling. The problem is that if Smarty doesn't handle exceptions and the application using Smarty doesn't either (as most upgrading Smarty 2 -> Sma ...
  Topic: exception handling
yankee

Replies: 10
Views: 21160

PostForum: Smarty 3   Posted: Fri Jul 03, 2009 2:23 pm   Subject: exception handling
By default Smarty handles exceptions during template processing, for those that don't gracefully handle them themselves. If you don't want Smarty handling any exceptions, set

$smarty->exception_ ...
  Topic: exception handling
yankee

Replies: 10
Views: 21160

PostForum: Smarty 3   Posted: Fri Jul 03, 2009 9:09 am   Subject: exception handling
Hi @ll,

my php application had a very weird problem that I just had no idea where it came from: Exceptions where not displayed in the way I wanted them to. But with certain exceptions it worked per ...
  Topic: Missing argument 3 for smarty_function_html_options()
yankee

Replies: 3
Views: 7840

PostForum: Smarty 3   Posted: Wed Jul 01, 2009 7:00 pm   Subject: Missing argument 3 for smarty_function_html_options()
Please check this patch:
Index: plugins/function.html_select_date.php
===================================================================
--- plugins/function.html_select_date.php (Re ...
  Topic: Linebreaks are Whitespace!
yankee

Replies: 2
Views: 5616

PostForum: Smarty 3   Posted: Tue Jun 23, 2009 9:23 am   Subject: Linebreaks are Whitespace!
I think that was fixed in SVN very recently.
sorry, you are right. That must have been very very recently though Wink.
  Topic: Missing argument 3 for smarty_function_html_options()
yankee

Replies: 3
Views: 7840

PostForum: Smarty 3   Posted: Mon Jun 22, 2009 11:24 pm   Subject: Missing argument 3 for smarty_function_html_options()
Hi @ll,

in the file plugins/function.html_select_date.php on line 255 and 302 the function smarty_function_html_options is called without the template argument.
Of course the function select_date ...
  Topic: Linebreaks are Whitespace!
yankee

Replies: 2
Views: 5616

PostForum: Smarty 3   Posted: Mon Jun 22, 2009 10:38 pm   Subject: Linebreaks are Whitespace!
I recently had a long function call with smarty. Something that I wanted to distrubute to several lines:

{somefunction
someArg="someValue"
otherArg="otherValue"
an ...
  Topic: $smarty->minifyXml = true
yankee

Replies: 0
Views: 5575

PostForum: Smarty 3   Posted: Mon Jun 15, 2009 9:50 pm   Subject: $smarty->minifyXml = true
Hi @ll,

smarty is often used to generate x(ht)ml. Keeping templates readable is very important and thus idention is very important as well, even though these indentions are ignored by the browser a ...
  Topic: Smarty 3.0 Alpha 1: Proof of Concept
yankee

Replies: 93
Views: 196159

PostForum: Smarty 3   Posted: Mon Jun 15, 2009 9:28 pm   Subject: Smarty 3.0 Alpha 1: Proof of Concept
The only way feasible around it would create more runtime processing. {$foo.bar} could get compiled into something like $smarty->fetch_value('foo','bar'), and the runtime would check if $foo is an ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT
Jump to:  


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