Merge remote-tracking (subtree) branch 'PracticingPhp/master'
This commit is contained in:
15
PracticingPhp/web-cake/html/app/models/post.php
Normal file
15
PracticingPhp/web-cake/html/app/models/post.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
class Post extends AppModel {
|
||||
public $name = "Post";
|
||||
public $validate = array(
|
||||
"title" => array(
|
||||
"rule" => "notEmpty"
|
||||
),
|
||||
"body" => array(
|
||||
"rule" => "notEmpty"
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user