Parcourir la source

Updated ToDo list..

Taddeus Kroes il y a 14 ans
Parent
commit
3924b207e6
1 fichiers modifiés avec 13 ajouts et 1 suppressions
  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']);