|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
trevieri Smarty n00b
Joined: 26 Apr 2007 Posts: 4
|
Posted: Thu Apr 26, 2007 1:39 pm Post subject: Capturando variavel |
|
|
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 |
|
|
|
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
|