icaro Posted March 28, 2012 Share Posted March 28, 2012 Hello Guys, I want to call this one function inside a .tpl file. I used {php} {/php} way, but this not works. What is the way to call this one? Thanks Link to comment Share on other sites More sharing options...
damonsk Posted March 28, 2012 Share Posted March 28, 2012 whats the function? Heres an example using the print_r function in smarty - <pre>{$customer|@print_r}</pre> 1 Link to comment Share on other sites More sharing options...
bellini13 Posted March 28, 2012 Share Posted March 28, 2012 smarty does not allow you to do this by default. there is a setting you would have to change, but I have had trouble in the past getting it to work. they would advise you to execute the php function in the controller, and create a smarty variable with the information you want to display. Link to comment Share on other sites More sharing options...
sr83 Posted April 15, 2013 Share Posted April 15, 2013 {$customer|@print_r} wo whats the function? Heres an example using the print_r function in smarty - {$customer|@print_r} That worked for me. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now