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

How can I call other smarty modifiers in my own block functi

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
qudoos
Smarty Rookie


Joined: 25 Dec 2004
Posts: 5

PostPosted: Sat Feb 12, 2005 8:57 pm    Post subject: How can I call other smarty modifiers in my own block functi Reply with quote

Hi, I am writing a few block functions as plugins for my application. How can I call already available plugins for instance modifiers in my function.

I know how to call them in my Template, but can I call it simply as just another function?

if yes then how?


thanks
Qudoos
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Sat Feb 12, 2005 11:06 pm    Post subject: Reply with quote

You have to ensure that the plugin is loaded and then you call the function defined in the plugin like a regular PHP function.

more details: http://smarty.php.net/manual/en/plugins.writing.php
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Plugins All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


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