dever hace 5 años
padre
commit
a83b02f70b
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12 0
      app/collection/src/Api.php

+ 12 - 0
app/collection/src/Api.php

@@ -6,6 +6,18 @@ use Dever;
 
 class Api
 {
+    public function test1()
+    {
+        $list = Dever::db('content/news')->state();
+        return $list;
+        $test = '😀 😀';
+        $test = Dever::input('test');
+
+        $data['name'] = 'test';
+        $data['desc'] = $test;
+        return Dever::db('content/news')->insert($data);
+    }
+
     public function data()
     {
         return Dever::db('collection/info')->state();