I think that you may be looking at it the wrong way. If you need a value from a Smarty variable, most likely you derived that value from variables that are being passed by a PHP file somewhere. In that case then just take the same action in your PHP file to arrive at this same value.
For instance, you have a Smarty variable that you add "2" to it and get a new value. In your PHP file, just take the variable that was passed to Smarty and take the same action.
The second case is that the value may be stored in a variable from a user input form. These forms should be processed by PHP code anyway, so that variable or value should be available to you.
|