Lançado Adianti Framework 8.1!
Clique aqui para saber mais
Forma de Chamar Seek Boa Tarde, consegui criar meus 2 primeiros formularios SEEk, enquanto tinha um só tudo bem, ao criar o segundo e criar a action dele, os forms com seek nao abrem mais como modal, ele abrem abaixo do form que chama eles, ja revisei o codigo e ambos estão iguais, segue abaixo a forma como chamo eles, alguem poderia me ajudar com alguma dica? desde ja agradeço. ...
AB
Forma de Chamar Seek  
Boa Tarde, consegui criar meus 2 primeiros formularios SEEk, enquanto tinha um só tudo bem, ao criar o segundo e criar a action dele, os forms com seek nao abrem mais como modal, ele abrem abaixo do form que chama eles, ja revisei o codigo e ambos estão iguais, segue abaixo a forma como chamo eles, alguem poderia me ajudar com alguma dica? desde ja agradeço.

  1. <?php
  2.      // define the action for lance_id
  3.             $obj_lance    = new ConsultaLance();
  4.             $obj_lance->set_formulario('form_arrematacao');
  5.             $action_lance = new TAction(array($obj_lance'onReload'));
  6.             $lance_id->setAction($action_lance);
  7.             // define the action for lance_id
  8.             $obj_leilao = new ConsultaLeilao();
  9.             $obj_leilao->set_formulario('form_arrematacao');
  10.             $action_leilao = new TAction(array($obj_leilao'onReload'));
  11.             $leilao_id->setAction($action_leilao);
  12.     ?>



Curso Dominando o Adianti Framework

O material mais completo de treinamento do Framework.
Curso em vídeo aulas + Livro completo + Códigos fontes do projeto ERPHouse.
Conteúdo Atualizado!


Dominando o Adianti Framework Quero me inscrever agora!

Comentários (8)


NR

Fiz o mesmo teste aqui com 2 seeks e funcionou certinho.

Se possível poste o código no pastebin
AB

Obrigado pelo retorno Nataniel, hoje fui entrar e ver novamente, o primeiro seek esta OK, funcionando, o segundo ele da permissão negada, verifiquei nas permissoes e estaão OK, vou rever mais uma vez para ver e caso persista posto o código, caso encontre algo, posto aqui tambem para futura referencia.
AB

Desculpe a demora Nataniel, tive que passar outras coisas na frente, segue abaixo o código do form principal

  1. <?php
  1. <?php
  2. /**
  3.  * arrematacaoForm Form
  4.  * @author  <your name here>
  5.  */
  6. class arrematacaoForm extends TPage
  7. {
  8.     protected $form// form
  9.     
  10.     /**
  11.      * Form constructor
  12.      * @param $param Request
  13.      */
  14.     public function __construct$param )
  15.     {
  16.         parent::__construct();
  17.         
  18.         // creates the form
  19.         $this->form = new TQuickForm('form_arrematacao');
  20.         $this->form->class 'tform'// change CSS class
  21.         //$this->form = new BootstrapFormWrapper($this->form);
  22.         $this->form->style 'display: table;width:100%'// change style
  23.         
  24.         // define the form title
  25.         $this->form->setFormTitle('Arrematação');
  26.         
  27.         $id                   = new TEntry('id');
  28.         $lote_id              = new TEntry('lote_id');
  29.         $numero_lote          = new TEntry('numero_lote');
  30.         $dados_leilao         = new TEntry('dados_leilao');
  31.         $codicional           = new TCombo('codicional');
  32.         $recibo_nr            = new TEntry('recibo_nr');
  33.         $tipo_adjudicacao     = new TEntry('tipo_adjudicacao');
  34.         $valor                = new TEntry('valor');
  35.         $numero_nota_fiscal   = new TEntry('numero_nota_fiscal');
  36.         $comprador            = new  ">TDBSeekButton('comprador','banco''form_arrematacao''cliente''nome''comprador''nome_cliente');
  37.         $senha                = new TEntry('senha');
  38.         $venda_parcial        = new TCombo('venda_parcial');
  39.         $venda_percentual     = new TEntry('venda_percentual');
  40.         $venda_prazo          = new TCombo('venda_prazo');
  41.         $bem_removido         = new TCombo('bem_removido');
  42.         $alienacao_fiduciaria = new TCombo('alienacao_fiduciaria');
  43.         $leilao_id            = new TSeekButton('leilao_id');
  44.         $status_id            = new TDBCombo('status_id','banco''arrematacao_status''id''nome''nome');
  45.         $tipo_venda           = new TDBCombo('tipo_venda','banco''tipos_venda''id''nome''nome');
  46.         $data_hora            = new TDate('data_hora');
  47.         $data_arremate        = new TEntry('data_arremate');
  48.         $hora_arremate        = new TEntry('hora_arremate');
  49.         $criteria_lance       = new TCriteria
  50.         $criteria_lance->add(new TFilter('leilao_id''='$leilao_id)); 
  51.         $criteria_lance->add(new TFilter('lote_id',  '='$lote_id)); 
  52.         $criteria_lance->setProperty('order''nome'); 
  53.         
  54.         $lance_id             = new TSeekButton('lance_id');
  55.         $valor_produtos       = new TEntry('valor_produtos');
  56.         $situacao_arrematacao = new TCombo('situacao_arrematacao');
  57.         $email_enviado        = new TCombo('email_enviado');
  58.         $observacoes          = new TText('observacoes');
  59.         $nome_cliente         = new TEntry('nome_cliente');
  60.         // define the action for lance_id
  61.         $obj_lance    = new ConsultaLance();
  62.         $obj_lance->set_formulario('form_arrematacao');
  63.         $action_lance = new TAction(array($obj_lance'onReload'));
  64.         $lance_id->setAction($action_lance);
  65.         // define the action for leilao_id
  66.         
  67.         $obj_leilao = new ConsultaLeilao();
  68.         $obj_leilao->set_formulario('form_arrematacao');
  69.         $action_leilao = new TAction(array($obj_leilao'onReload'));
  70.         $leilao_id->setAction($action_leilao);
  71.         
  72.         $action_lote = new TAction(array($this'onPesquisaLote'));
  73.         $numero_lote->setExitAction($action_lote);
  74.         $sim_nao    = array();
  75.         $sim_nao[1] = 'Sim';
  76.         $sim_nao[0] = 'Não';
  77.         $codicional->addItems($sim_nao);
  78.         $venda_parcial->addItems($sim_nao);
  79.         $venda_prazo->addItems($sim_nao);
  80.         $bem_removido->addItems($sim_nao);
  81.         $alienacao_fiduciaria->addItems($sim_nao);
  82.         $email_enviado->addItems($sim_nao);
  83.         
  84.         $sit_arremate = array();
  85.         $sit_arremate['C'] = 'Concluso';
  86.         $sit_arremate['D'] = 'Deferido';
  87.         $sit_arremate['I'] = 'Indeferido';
  88.         $situacao_arrematacao->addItems($sit_arremate);
  89.         
  90.         $valor->setNumericMask(2,',','.'TRUE);        
  91.         $valor_produtos->setNumericMask(2,',','.'TRUE);        
  92.         $id->setEditable(FALSE);
  93.         $data_arremate->setEditable(FALSE);
  94.         $hora_arremate->setEditable(FALSE);
  95.         $dados_leilao->setEditable(FALSE);
  96.         $nome_cliente->setEditable(FALSE);
  97.         $lote_id->setEditable(FALSE);
  98.         $codicional->addValidation('Condicional', new TRequiredValidator);
  99.         $comprador->addValidation('Arrematante', new TRequiredValidator);
  100.         $id->setSize(100);
  101.         $lote_id->setSize(100);
  102.         $numero_lote->setSize(80);
  103.         $codicional->setSize(80);
  104.         $recibo_nr->setSize(100);
  105.         $tipo_adjudicacao->setSize(200);
  106.         $valor->setSize(100);
  107.         $numero_nota_fiscal->setSize(100);
  108.         $comprador->setSize(100);
  109.         $senha->setSize(100);
  110.         $venda_parcial->setSize(80);
  111.         $venda_percentual->setSize(100);
  112.         $venda_prazo->setSize(80);
  113.         $bem_removido->setSize(100);
  114.         $alienacao_fiduciaria->setSize(80);
  115.         $leilao_id->setSize(100);
  116.         $status_id->setSize(120);
  117.         $tipo_venda->setSize(200);
  118.         $data_arremate->setSize(100);
  119.         $hora_arremate->setSize(100);
  120.         $lance_id->setSize(100);
  121.         $valor_produtos->setSize(100);
  122.         $situacao_arrematacao->setSize(100);
  123.         $email_enviado->setSize(100,30);
  124.         $observacoes->setSize(100040);
  125.         $nome_cliente->setSize(500);
  126.         $dados_leilao->setSize(500);
  127.         
  128.         $id->style                 = ('text-align:center;color:#ff0000;font-weight:bold;font-size:14px;');
  129.         $lote_id->style            = ('text-align:center;color:#ff0000;font-weight:bold;font-size:14px;display:none');
  130.         $data_hora->style          = ('text-align:center;color:#ff0000;font-weight:bold;font-size:14px;display:none');
  131.         $recibo_nr->style          = ('text-align:center;color:#ff0000;font-weight:bold;font-size:14px;');
  132.         $numero_nota_fiscal->style = ('text-align:center;color:#ff0000;font-weight:bold;font-size:14px;');
  133.         $senha->style              = ('text-align:center;color:#ff0000;font-weight:bold;font-size:14px;');
  134.         $data_arremate->style      = ('text-align:center;color:#ff0000;font-weight:bold;font-size:14px;');
  135.         $hora_arremate->style      = ('text-align:center;color:#ff0000;font-weight:bold;font-size:14px;');
  136.         $lance_id->style           = ('text-align:center;color:#ff0000;font-weight:bold;font-size:14px;');
  137.         $numero_lote->style        = ('text-align:center;color:#ff0000;font-weight:bold;font-size:14px;');
  138.         
  139.         $linha1 = array(new TLabel('Leilão: '), $leilao_id);      
  140.         $linha2 = array($dados_leilao);
  141.         $linha  array_merge($linha1$linha2);
  142.         $this->form->addQuickFields('',$linha);
  143.         
  144.         $linha1 = array(new TLabel('Código: '), $id);      
  145.         $linha2 = array(new TLabel('Lote: '),  $numero_lote$lote_id);  
  146.         $linha3 = array(new TLabel('Lance: '), $lance_id);;             
  147.         $linha  array_merge($linha1$linha2$linha3);
  148.         $this->form->addQuickFields('',$linha);
  149.         
  150.         $linha1 = array(new TLabel('Condicional: '), $codicional);      
  151.         $linha2 = array(new TLabel('Nº. Recibo: '), $recibo_nr);      
  152.         $linha3 = array(new TLabel('Tipo Adjudicação: '), $tipo_adjudicacao);      
  153.         $linha4 = array(new TLabel('Nº. Senha: '),  $senha);              
  154.         $linha  array_merge($linha1$linha2$linha3$linha4);
  155.         $this->form->addQuickFields('',$linha);
  156.         
  157.         $linha1 = array(new TLabel('Valor Arremate: '), $valor);      
  158.         $linha2 = array(new TLabel('Valor Produto: '), $valor_produtos);      
  159.         $linha3 = array(new TLabel('% Venda: '),  $venda_percentual);              
  160.         $linha4 = array(new TLabel('Tipo Venda: '),  $tipo_venda);              
  161.         $linha  array_merge($linha1$linha2$linha3$linha4);
  162.         $this->form->addQuickFields('',$linha);
  163.         
  164.         $linha1 = array(new TLabel('Venda Parcial: '), $venda_parcial);      
  165.         $linha2 = array(new TLabel('Venda Prazo: '), $venda_prazo);      
  166.         $linha3 = array(new TLabel('Alienação Fiduciária: '), $alienacao_fiduciaria);      
  167.         $linha4 = array(new TLabel('Status: '),  $status_id);              
  168.         $linha  array_merge($linha1$linha2$linha3$linha4);
  169.         $this->form->addQuickFields('',$linha);
  170.         
  171.         $linha1 = array(new TLabel('Arrematante: '), $comprador);      
  172.         $linha2 = array($nome_cliente);      
  173.         $linha3 = array(new TLabel('Nº. Nota Venda: '), $numero_nota_fiscal);      
  174.         $linha  array_merge($linha1$linha2$linha3);
  175.         $this->form->addQuickFields('',$linha);
  176.         
  177.         $linha1 = array(new TLabel('Situação da Arrematação: '), $situacao_arrematacao);      
  178.         $linha2 = array(new TLabel('Data: '),  $data_arremate$data_hora);              
  179.         $linha3 = array(new TLabel('Hora: '),  $hora_arremate);              
  180.         $linha4 = array(new TLabel('Bem Removido: '), $bem_removido);      
  181.         $linha5 = array(new TLabel('Email Enviado: '), $email_enviado);      
  182.         $linha  array_merge($linha1$linha2$linha3$linha4$linha5);
  183.         $this->form->addQuickFields('',$linha);
  184.         
  185.                 // add the fields
  186.         $linha1 = array(new TLabel('Observação: '), $observacoes);      
  187.         $linha  array_merge($linha1);
  188.         $this->form->addQuickFields('',$linha);
  189.                  
  190.         // create the form actions
  191.         $this->form->addQuickAction(_t('Save'), new TAction(array($this'onSave')), 'fa:floppy-o');
  192.         $this->form->addQuickAction(_t('New'),  new TAction(array($this'onClear')), 'bs:plus-sign green');
  193.         
  194.         // vertical box container
  195.         $container = new TVBox;
  196.         $container->style 'width: 90%';
  197.         $container->add($this->form);
  198.         
  199.         parent::add($container);
  200.     }
  201.     /**
  202.      * Save form data
  203.      * @param $param Request
  204.      */
  205.     public function onSave$param )
  206.     {
  207.         try
  208.         {
  209.             TTransaction::open('banco'); // open a transaction
  210.             
  211.             /**
  212.             // Enable Debug logger for SQL operations inside the transaction
  213.             TTransaction::setLogger(new TLoggerSTD); // standard output
  214.             TTransaction::setLogger(new TLoggerTXT('log.txt')); // file
  215.             **/
  216.             
  217.             $this->form->validate(); // validate form data
  218.             
  219.             $object = new arrematacao;  // create an empty object
  220.             $data $this->form->getData(); // get form data as array
  221.             $object->fromArray( (array) $data); // load the object with data
  222.             $object->store(); // save the object
  223.             
  224.             // get the generated id
  225.             $data->id $object->id;
  226.             
  227.             $this->form->setData($data); // fill form data
  228.             TTransaction::close(); // close the transaction
  229.             
  230.             new TMessage('info'TAdiantiCoreTranslator::translate('Record saved'));
  231.         }
  232.         catch (Exception $e// in case of exception
  233.         {
  234.             new TMessage('error'$e->getMessage()); // shows the exception error message
  235.             $this->form->setData$this->form->getData() ); // keep form data
  236.             TTransaction::rollback(); // undo all pending operations
  237.         }
  238.     }
  239.     
  240.     public static function onPesquisaLote$param )
  241.     {
  242.         TSession::setValue('numeroLote'$param['numero_lote']);
  243.     }
  244.     
  245.     /**
  246.      * Clear form data
  247.      * @param $param Request
  248.      */
  249.     public function onClear$param )
  250.     {
  251.         $this->form->clear();
  252.     }
  253.     
  254.     /**
  255.      * Load object to form data
  256.      * @param $param Request
  257.      */
  258.     public function onEdit$param )
  259.     {
  260.         try
  261.         {
  262.             if (isset($param['key']))
  263.             {
  264.                 $key $param['key'];  // get the parameter $key
  265.                 TTransaction::open('anco'); // open a transaction
  266.                 $object = new arrematacao($key); // instantiates the Active Record
  267.                 $this->form->setData($object); // fill the form
  268.                 TTransaction::close(); // close the transaction
  269.             }
  270.             else
  271.             {
  272.                 $this->form->clear();
  273.             }
  274.         }
  275.         catch (Exception $e// in case of exception
  276.         {
  277.             new TMessage('error'$e->getMessage()); // shows the exception error message
  278.             TTransaction::rollback(); // undo all pending operations
  279.         }
  280.     }
  281. }
  282. ?>
</your>
AB

Form da consulta


  1. <?php
  2. /**
  3.  * Formulario de Consulta de Lances
  4.  *
  5.  * @version    1.0
  6.  * @package 
  7.  * @subpackage
  8.  * @author     Agostinho Francisco Barbosa
  9.  */
  10. class ConsultaLeilao extends TWindow
  11. {
  12.     private $form;      // form
  13.     private $datagrid;  // datagrid
  14.     private $pageNavigation;
  15.     private $loaded;
  16.     
  17.     /**
  18.      * Class constructor
  19.      * Creates the page, the search form and the listing
  20.      */
  21.     public function __construct()
  22.     {
  23.         parent::__construct();
  24.         parent::setSize(700600);
  25.         parent::setTitle('Consulta Leilão');
  26.         new TSession;
  27.         
  28.         // creates the form
  29.         $this->form = new TQuickForm('form_consulta_leilao');
  30.         $this->form->class 'tform';
  31.         
  32.         // create the form fields
  33.         $data_leilao   = new TDate('data_leilao');
  34.         $data_leilao->setMask('99/99/9999');
  35.         
  36.         // add the form fields
  37.         $this->form->addQuickField('Data Leilão'$data_leilao,  100);
  38.         
  39.         // define the form action
  40.         $this->form->addQuickAction('Find', new TAction(array($this'onSearch')), 'ico_find.png');
  41.         
  42.         // creates a DataGrid
  43.         $this->datagrid        = new TQuickGrid;
  44.         $this->datagrid->style 'width: 100%';
  45.         $this->datagrid->setHeight(230);
  46.         
  47.         // creates the datagrid columns
  48.         $column_id         $this->datagrid->addQuickColumn('Id',              'id',              'center'40);
  49.         $column_realizacao $this->datagrid->addQuickColumn('Data Realização''data_realizacao''center',   100);
  50.         $column_nome       $this->datagrid->addQuickColumn('Descrição',       'nome',            'left',  100);
  51.         $column_leiloeiro  $this->datagrid->addQuickColumn('Leiloeiro',       'nome_leiloeiro',  'left',  200);
  52.         
  53.         $column_realizacao->setTransformer( function($value$object$row) {
  54.             return TDate::date2br($value);
  55.         });
  56.                 
  57.         // creates two datagrid actions
  58.         $this->datagrid->addQuickAction('Select', new TDataGridAction(array($this'onSelect')), 'id''ico_apply.png');
  59.         
  60.         // create the datagrid model
  61.         $this->datagrid->createModel();
  62.         
  63.         // creates the page navigation
  64.         $this->pageNavigation = new TPageNavigation;
  65.         $this->pageNavigation->setAction(new TAction(array($this'onReload')));
  66.         $this->pageNavigation->setWidth($this->datagrid->getWidth());
  67.         
  68.         // creates a container
  69.         $container        = new TVBox;
  70.         $container->style 'width: 100%';
  71.         $container->add($this->form);
  72.         $container->add($this->datagrid);
  73.         $container->add($this->pageNavigation);
  74.         
  75.         // add the container inside the page
  76.         parent::add($container);
  77.     }
  78.     
  79.     /**
  80.      * method onSearch()
  81.      * Register the filter in the session when the user performs a search
  82.      */
  83.     function onSearch()
  84.     {
  85.         // get the search form data
  86.         $data $this->form->getData();
  87.         
  88.         // check if the user has filled the form
  89.         if (isset($data->data_leilao))
  90.         {
  91.             $data->data_leilao TDate::date2us($data->data_leilao);
  92.             // creates a filter using what the user has typed
  93.             $filtro_data_leilao  = new TFilter('data_realizacao',   '='"{$data->data_leilao}");
  94.         
  95.             // stores the filter in the session
  96.             TSession::setValue('data_leilao_filtro',   $filtro_data_leilao);
  97.             
  98.             $data->data_leilao TDate::date2br($data->data_leilao);
  99.             
  100.             $this->form->setData($data);
  101.         }
  102.     
  103.         // redefine the parameters for reload method
  104.         $param               = array();
  105.         $param['offset']     = 0;
  106.         $param['first_page'] = 1;
  107.         $this->onReload($param);
  108.     }
  109.         
  110.     /**
  111.      * Load the datagrid with the database objects
  112.      */
  113.     function onReload($param NULL)
  114.     {
  115.         try
  116.         {
  117.             // open a transaction with database 'samples'
  118.             TTransaction::open('brldb');
  119.             
  120.             // creates a repository for City
  121.             $repository = new TRepository('interativo_leilao');
  122.             $limit      10;
  123.             
  124.             $criteria   = new TCriteria;
  125.             
  126.             // default order
  127.             if (!isset($param['order']))
  128.             {
  129.                 $param['order'] = 'data_realizacao';
  130.                 $param['direction'] = 'desc';
  131.             }
  132.             
  133.             
  134.             
  135.             $criteria->setProperties($param); // order, offset
  136.             $criteria->setProperty('limit'$limit);
  137.             
  138.             if (TSession::getValue('data_leilao_filtro'))
  139.             {
  140.                 // add the filter stored in the session to the criteria
  141.                 $criteria->add(TSession::getValue('data_leilao_filtro'));
  142.             }
  143.             
  144.             // load the objects according to the criteria
  145.             $lista_leilao $repository->load($criteria);
  146.             $this->datagrid->clear();
  147.             if ($lista_leilao)
  148.             {
  149.                 foreach ($lista_leilao as $leilao)
  150.                 {
  151.                     // add the object inside the datagrid
  152.                     $this->datagrid->addItem($leilao);
  153.                 }
  154.             }
  155.             
  156.             // reset the criteria for record count
  157.             $criteria->resetProperties();
  158.             $count $repository->count($criteria);
  159.             
  160.             $this->pageNavigation->setCount($count); // count of records
  161.             $this->pageNavigation->setProperties($param); // order, page
  162.             $this->pageNavigation->setLimit($limit); // limit
  163.             
  164.             // close the transaction
  165.             TTransaction::close();
  166.             $this->loaded true;
  167.         }
  168.         catch (Exception $e// in case of exception
  169.         {
  170.             // shows the exception error message
  171.             new TMessage('error'$e->getMessage());
  172.             // undo all pending operations
  173.             TTransaction::rollback();
  174.         }
  175.     }
  176.     
  177.     /**
  178.      * Executed when the user chooses the record
  179.      */
  180.     public function onSelect($param)
  181.     {
  182.         try
  183.         {
  184.             $key $param['key'];
  185.             TTransaction::open('brldb');
  186.             
  187.             // load the active record
  188.             $leilao               = new interativo_leilao($key);
  189.             
  190.             $object               = new StdClass;
  191.             $object->leilao_id    $leilao->id;
  192.             $object->dados_leilao $leilao->dados_leilao;
  193.             
  194.             TForm::sendData(TSession::getValue('form_chamador_leilao'), $object);
  195.             // closes the transaction
  196.             TTransaction::close();
  197.             parent::closeWindow(); // close the window
  198.         }
  199.         catch (Exception $e// em caso de exceção
  200.         {
  201.             // clear fields
  202.             $object               = new StdClass;
  203.             $object->leilao_id    '';
  204.             $object->dados_leilao '';
  205.             TForm::sendData($this->form_chamador$object);
  206.             
  207.             // undo pending operations
  208.             TTransaction::rollback();
  209.         }
  210.     }
  211.     
  212.     /**
  213.      * Shows the page
  214.      */
  215.     function show()
  216.     {
  217.         // if the datagrid was not loaded yet
  218.         if (!$this->loaded)
  219.         {
  220.             $this->onReload();
  221.         }
  222.         parent::show();
  223.     }
  224.     
  225.     function set_formulario($formulario)
  226.     {
  227.         TSession::setValue('form_chamador_leilao'$formulario);
  228.     }
  229.     
  230.     function get_formulario()
  231.     {
  232.         return TSession::getValue('form_chamador_leilao');
  233.     }
  234. }
  235. ?>
AB

Descobri uma coisa, no form de consulta o campo $data_leilao é um campo de data, se passo para input normal não ocorre, ou seja

assim ele coloca o formulario de consulta abaixo no form
  1. <?php
  2.         $data_leilao   = new TDate('data_leilao');
  3.         $data_leilao->setMask('99/99/9999');
  4. ?>

Assim ele faz certo, ou seja abre em uma Janela
  1. <?php
  2.         $data_leilao   = new TInput('data_leilao');
  3.         $data_leilao->setMask('99/99/9999');
  4. ?>

AB

new TInput não, desculpem, new TEntry

  1. <?php
  2.         $data_leilao   = new TEntry('data_leilao');                
  3.         $data_leilao->setMask('99/99/9999');
  4. ?>
NR

Agostinho, o formato da máscara da data está incorreto. Isso está gerando um erro javascript. Deixe no formato abaixo que vai funcionar:
  1. <?php
  2. $data_leilao->setMask('dd/mm/yyyy'); 
  3. ?>
AB

Bom Dia Nataniel, era isso mesmo, coisas pequenas que não prestamos atenção. funcionou 100%.

Obrigado