Welcome Guest, Not a member yet? Register   Sign In
Adding values in a template
#1

[eluser]BrandonDurham[/eluser]
I want to add two values in a template and don't understand how to do it. The two values I need to add are "{cost}" and "{tax}". Is this possible?

Thank you.
#2

[eluser]Michael Wales[/eluser]
This is something that should be completed in the controller and assigned a new variable (total, maybe)?

If you really wanted to do it in the View - I'm pretty sure you will need to drop the Template class and start using PHP in your view (which will also speed up site loading and decrease server load).
#3

[eluser]BrandonDurham[/eluser]
Yeah, I went ahead and did it in the controller. Thanks!




Theme © iAndrew 2016 - Forum software by © MyBB