Bladeren bron

Fix bug width warning with duplicated javascript id usuario

Gabriel Badano 4 jaren geleden
bovenliggende
commit
28b3862779
2 gewijzigde bestanden met toevoegingen van 7 en 7 verwijderingen
  1. 4 4
      protected/config/config.php
  2. 3 3
      protected/controllers/usuario.php

+ 4 - 4
protected/config/config.php

@@ -2,16 +2,16 @@
 
 return array(
 
-    'SITE'          => 'http://sitio.com/',
+    'SITE'          => 'http://localhost/webapp-admin/',
     'TITULO'        => 'SitioAdmin',
 
     'DEBUG'         => true,
 
     'DB_SERVER'     => 'localhost',
-    'DB_USER'       => '',
+    'DB_USER'       => 'root',
     'DB_PASS'       => '',
-    'DB_DB'         => '',
+    'DB_DB'         => 'webapp',
 
-    'DIR_PROTECTED' => $_SERVER['DOCUMENT_ROOT'] . '/protected/',
+    'DIR_PROTECTED' => $_SERVER['DOCUMENT_ROOT'] . '/webapp-admin/protected/',
 
 );

+ 3 - 3
protected/controllers/usuario.php

@@ -93,7 +93,7 @@ class usuario extends controller
     {
         $this->webApp()->requireLogin();
 
-        $form = new form('usuario', array(
+        $form = new form('usuarioForm', array(
 
             new column(array(
 
@@ -133,9 +133,9 @@ class usuario extends controller
             'gridId' => "usuarios"
         ));
 
-        if (isset($_POST['usuario'])) {
+        if (isset($_POST['usuarioForm'])) {
 
-            $form->setAtributes($_POST['usuario']);
+            $form->setAtributes($_POST['usuarioForm']);
 
             if ($form->validate()) {