Jump to content

can't assign smarty variable


Recommended Posts

Hello !

I'm on P.S 1.6.1.18

I have a PHP file where I assigned an URL to a variable called $newUrl 
Then I wanted to assign this variable to Smarty like this:

$this->context->smarty->assign('newUrl', $newUrl);

return $this->module->display($this->file, 'displayPayment.tpl');

 

In my tpl file, I added {debug} , but I can't find my variable in the debug, so I can't call it. Could someone help me please?

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...