CONTATO

PHP error

PHP error

Non-static method CActiveForm::hiddenField() should not be called statically

/home/ilumy503/public_html/contato.php(64)

52             ?>
53               <br/>
54                <h4><strong>Pacote de interesse</strong></h4>
55                <div class="pacotes_infos">
56                   <h4><a href="pacotes_mostra.php?idpacote=<?=$pacote->idpacote;?>"><?=Util::resumeData($pacote->data);?></a></h4>
57                   <h4><a href="pacotes_mostra.php?idpacote=<?=$pacote->idpacote;?>"><?=Util::formataTexto($pacote->titulo);?></a></h4>
58                   <h4><a href="pacotes_mostra.php?idpacote=<?=$pacote->idpacote;?>"><?=Util::formataTexto($pacote->valor);?></a></h4>
59                </div>
60                <?
61             }
62            ?>
63           <form id="form1" name="form1" class="form-com-label" method="post" action="contato.php">
64                <?php echo CActiveForm::hiddenField($contato,'idpacote'); ?>
65             <input type="hidden"  name="grava" value="1" />
66             <fieldset>
67               <div>
68                 <?php echo CActiveForm::textField($contato,'nome',array('size'=>100,'maxlength'=>100,'class'=>'campo-label margin10','title' => $atributos['nome'],'placeholder'=>$atributos['nome'])); ?>
69               </div>
70               <div>
71                 <?php echo CActiveForm::textField($contato,'email',array('size'=>100,'maxlength'=>100,'class'=>'campo-label margin10','title' => $atributos['email'],'placeholder'=>$atributos['email'])); ?>
72               </div>
73             </fieldset>
74             <fieldset>
75               <div>
76                 <?php echo CActiveForm::textField($contato,'estado',array('size'=>100,'maxlength'=>100,'class'=>'campo-label margin10','title' => $atributos['estado'],'placeholder'=>$atributos['estado'])); ?>

Stack Trace

#0
+
 /home/ilumy503/public_html/contato.php(64): CActiveForm::hiddenField()
59                </div>
60                <?
61             }
62            ?>
63           <form id="form1" name="form1" class="form-com-label" method="post" action="contato.php">
64                <?php echo CActiveForm::hiddenField($contato,'idpacote'); ?>
65             <input type="hidden"  name="grava" value="1" />
66             <fieldset>
67               <div>
68                 <?php echo CActiveForm::textField($contato,'nome',array('size'=>100,'maxlength'=>100,'class'=>'campo-label margin10','title' => $atributos['nome'],'placeholder'=>$atributos['nome'])); ?>
69               </div>
2018-02-24 02:27:29 Apache Yii Framework/1.1.13