Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Iniciante - Dúvida

 
Post new topic   Reply to topic    Smarty Forum Index -> Language: Portuguese
View previous topic :: View next topic  
Author Message
EdionTorres
Smarty n00b


Joined: 20 Jan 2008
Posts: 1

PostPosted: Sun Jan 20, 2008 2:17 am    Post subject: Iniciante - Dúvida Reply with quote

Boa noite senhores.

Tenho uma página ControllGeral que recebe as variáveis post de um templete.

Em determinado momento preciso fazer isso.

$smarty->assign('uf', $uf);
$smarty->assign('municipio', $persOra->selMunicipio('DF'));
$smarty->display('identificacaoCadastro.tpl');

mas no template identificacaoCadastro.tpl no select onde seto {$municipio} não mostra as opçoes de select trazidas do sql.

instanciando direto na página funciona!

Aguardo.
Back to top
View user's profile Send private message
migas
Smarty Regular


Joined: 07 Apr 2004
Posts: 66
Location: Porto, Portugal

PostPosted: Mon Feb 25, 2008 5:32 pm    Post subject: Reply with quote

Boas,

Se calhar tens de chamar as propriedades do objecto.

Para poderes testar de modo a verificar se estas estão a passar tenta no TPL

{debug output="html"}
Back to top
View user's profile Send private message
GersonGFPN
Smarty Rookie


Joined: 22 May 2009
Posts: 10

PostPosted: Fri May 22, 2009 4:19 pm    Post subject: Reply with quote

Quote:
$smarty->assign('municipio', $persOra->selMunicipio('DF'));


Qual é o retorno deste método selMunicipio ????

Aguardo resposta para lhe ajudar.
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