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

 
Post new topic   Reply to topic    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:   
Post new topic   Reply to topic    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