rabin %!s(int64=6) %!d(string=hai) anos
pai
achega
385914499d
Modificáronse 2 ficheiros con 6 adicións e 1 borrados
  1. 1 1
      database/city.php
  2. 5 0
      src/Api.php

+ 1 - 1
database/city.php

@@ -111,7 +111,7 @@ return array
 			),
 			'type' => 'all',
 			'order' => array('reorder' => 'desc', 'id' => 'asc'),
-			'col' => 'id as value, name',
+			'col' => 'id,id as value, name',
 		),
 
 		'getData' => array

+ 5 - 0
src/Api.php

@@ -305,4 +305,9 @@ class Api
     {
         return Dever::db('area/province')->getAll();
     }
+
+    public function getCity($province_id)
+    {
+        return Dever::db('area/city')->getAll(array('province_id' => $province_id));
+    }
 }