Sfoglia il codice sorgente

Updated ToDo list..

Taddeus Kroes 14 anni fa
parent
commit
3924b207e6
1 ha cambiato i file con 13 aggiunte e 1 eliminazioni
  1. 13 1
      todo.txt

+ 13 - 1
todo.txt

@@ -2,4 +2,16 @@
 - UNIT TESTS!!!
 - Extend array plugin with stack/collection functions.
 - Add unit tests for base and SQL plugin.
-- Create plugin for URL rewriting.
+X Create plugin for URL rewriting.
+- Model plugin
+
+// Model brainstorm:
+__model::add_entity('posts', array(
+	'id' => 'int',
+	'name' => 'string',
+	'content' => 'string',
+	'position' => 'int'
+));
+
+// Search query
+$page = _model('posts', "select * from posts where name like '%[0]%'", $_GET['keywords']);