Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Capturando variavel

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Portuguese
View previous topic :: View next topic  
Author Message
trevieri
Smarty n00b


Joined: 26 Apr 2007
Posts: 4

PostPosted: Thu Apr 26, 2007 1:39 pm    Post subject: Capturando variavel Reply with quote

Alguem tem algum exemplo, onde vc usa 2 template, e na segunda voce captura apenas uma ou outra variavel da primeira template, sem utilizar o include.

Arquivo 1

areat.tpl

<form name="teste>
{assign var="nom_form" value="teste"}
<include name="codigo" value="">
{assign var="campo" value="codigo"}
</form>

Arquivo 2

rodap.tpl
<script>
{$nom_form}.{$campo}.focus();
</script>
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Portuguese 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