From: Gonzalo Merayo Date: Thu, 3 Jul 2003 19:27:54 +0000 (+0000) Subject: Se cambia el constructor para sobreescribir primero las opciones usadas más frecuente... X-Git-Tag: svn_import~404 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/6c30194f66f3b8eca602487b88e77fcf91623b29?ds=inline Se cambia el constructor para sobreescribir primero las opciones usadas más frecuentemente. --- diff --git a/lib/MECON/HTML/QuickForm.php b/lib/MECON/HTML/QuickForm.php index 1c7763d..e8019b5 100644 --- a/lib/MECON/HTML/QuickForm.php +++ b/lib/MECON/HTML/QuickForm.php @@ -35,7 +35,7 @@ require_once 'MECON/HTML/QuickForm/Renderer/Tabla.php'; */ class MECON_HTML_QuickForm extends HTML_QuickForm { var $_rendererOpts = array(); - function MECON_HTML_QuickForm($formName='', $method='post', $action='', $target='_self', $attributes=null) + function MECON_HTML_QuickForm($action='', $formName='', $target='_self', $method='post', $attributes=null) { parent::HTML_QuickForm($formName, $method, $action, $target, $attributes); $this->registerElementType('mdate', 'MECON/HTML/QuickForm/mdate.php', 'HTML_QuickForm_mdate'); diff --git a/test/HTML/prueba_html_quickform_renderer_tabla.php b/test/HTML/prueba_html_quickform_renderer_tabla.php index cc8ad08..3b81655 100644 --- a/test/HTML/prueba_html_quickform_renderer_tabla.php +++ b/test/HTML/prueba_html_quickform_renderer_tabla.php @@ -8,7 +8,7 @@ require_once 'MECON/HTML/QuickForm.php'; - $form = new MECON_HTML_QuickForm('test'); + $form = new MECON_HTML_QuickForm(); //Agrega los elementos comunes a todas las opciones $form->addElement('header','cabecera', 'Título del formulario');