How to call php function from smarty tpl file


You can call any PHP  function from the smarty template file.

Use the below line to call any php function :

{assign var="var1" value=$parameter1|function_name:$parameter2}
Advertisements

8 thoughts on “How to call php function from smarty tpl file

  1. Great article. I’ve enjoyed this contribution. Its nice to see every questions answered in a blog post like this. I will add this post on my blog and link to it. Thanks for a clear informative post, I’ve learned a lot. I hope to see videos though as I can be A.D.D and reading articles is not my favorite thing to do online. So what I do sometimes is just print the whole thing and read offline.

  2. That is my third time visiting this internet site. We are beginning a new initiative in the same class as this website. Your site provided us with beneficial information to work on. You’ve gotten performed a admirable job. The rationale why i like this put up and it is so informational and I’m gonna save it. One thing to say the Indepth analysis this post has is vastly remarkable.Nobody goes that further mile these days? Well Executed!!!

  3. It is especially excellent to view your site content, my pal. Plus i is going to concentrate on your web page everyday and visit your web site to view the current article content, any time you redesign. Maintain! I do hope you have a very good evening.

  4. It is really quite wonderful to read the paper the articles you write, my good friend. And could give attention to your websites day-to-day and also call your site to read the paper any latest content pieces, when you finally update. Preserve! We do hope you have a good afternoon.

  5. Great info and right to the point. I don’t know if this is truly the best place to ask but do you folks have any ideea where to get some professional writers? Thanks in advance 🙂

  6. This is really fascinating, You are an overly professional blogger. I have joined your rss feed and look ahead to looking for more of your fantastic post. Also, I have shared your website in my social networks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s