working through cake blog tutorial

This commit is contained in:
Dan Buch
2011-01-03 11:08:43 -05:00
parent d65971eb9c
commit d5889c0cb8
7 changed files with 125 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
<?php
class Post extends AppModel {
public $name = "Post";
public $validate = array(
"title" => array(
"rule" => "notEmpty"
),
"body" => array(
"rule" => "notEmpty"
)
);
}
?>