Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Variables in tpl

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Premizlaus
Smarty n00b


Joined: 22 Feb 2018
Posts: 1

PostPosted: Thu Feb 22, 2018 11:29 pm    Post subject: Variables in tpl Reply with quote

Hello, I have a problem with transferring the variable from input to the href under the button.

from - <input name="value1" value="{$value1}"/>
to - <a href="{$urls.base_url}2-strona-glowna?q=Cena-zł-{$value1}-{value2}

Prestashop 1.7


Last edited by Premizlaus on Sat Feb 24, 2018 11:29 am; edited 2 times in total
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1744

PostPosted: Fri Feb 23, 2018 10:46 am    Post subject: Reply with quote

Great, but where's the code that demonstrates your problem?
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Mon Apr 09, 2018 12:03 pm    Post subject: Reply with quote

Code:
q={"Cena-zł-{$value1}-{value2}"}


Double qoutes but in side Samrty { } tags will do the job.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP