summaryrefslogtreecommitdiff
path: root/poc/poc02-compiling-cake/src/workdir/in/app/Model/Post.php
diff options
context:
space:
mode:
Diffstat (limited to 'poc/poc02-compiling-cake/src/workdir/in/app/Model/Post.php')
-rw-r--r--poc/poc02-compiling-cake/src/workdir/in/app/Model/Post.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/poc/poc02-compiling-cake/src/workdir/in/app/Model/Post.php b/poc/poc02-compiling-cake/src/workdir/in/app/Model/Post.php
new file mode 100644
index 0000000..847be83
--- /dev/null
+++ b/poc/poc02-compiling-cake/src/workdir/in/app/Model/Post.php
@@ -0,0 +1,11 @@
+<?php
+class Post extends AppModel {
+ public $validate = array(
+ 'title' => array(
+ 'rule' => 'notEmpty'
+ ),
+ 'body' => array(
+ 'rule' => 'notEmpty'
+ )
+ );
+}