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 5 matches
Smarty Forum Index
Author Message
  Topic: Command line output for Smarty::compileAllTemplates()
Juje007

Replies: 3
Views: 23371

PostForum: Feature Requests   Posted: Fri Jul 27, 2012 7:10 pm   Subject: Command line output for Smarty::compileAllTemplates()
Thank you very much Smile.

~Juje007
  Topic: Command line output for Smarty::compileAllTemplates()
Juje007

Replies: 3
Views: 23371

PostForum: Feature Requests   Posted: Tue Jul 24, 2012 3:08 pm   Subject: Command line output for Smarty::compileAllTemplates()
Hey everyone,

I was creating an command line interface for my app when I discovered that Smarty::compileAllTemplates() is only able to echo HTML data which is not really friendly in a command line ...
  Topic: Howto create a Smarty function to use within an if statement
Juje007

Replies: 4
Views: 6731

PostForum: General   Posted: Fri Jan 20, 2012 8:34 pm   Subject: Howto create a Smarty function to use within an if statement
Ok I founded that you can pass an object/Class trough $smarty->registerObject().
And so you can set the allowed_methods_properties to choose which methods are allowed.
But there is no data assign ...
  Topic: Howto create a Smarty function to use within an if statement
Juje007

Replies: 4
Views: 6731

PostForum: General   Posted: Fri Jan 20, 2012 7:57 pm   Subject: Howto create a Smarty function to use within an if statement
You can use any PHP function just as you have been written

{if yourfunc()} ... {/if}
So I can just use global PHP functions??

Edit:
I tested and indeed works thank ...
  Topic: Howto create a Smarty function to use within an if statement
Juje007

Replies: 4
Views: 6731

PostForum: General   Posted: Fri Jan 20, 2012 7:52 pm   Subject: Howto create a Smarty function to use within an if statement
Hey everyone,

I was searching on the web how this can be done but I only see how to do it for normal functions (eg. {functionname}).
But I want to create a function to use inside an if (eg. {if fu ...
 
Page 1 of 1
All times are GMT
Jump to:  


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