Advertisement
hombretao

Post.php

Feb 19th, 2014
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  1. <?php
  2. class Model_Post extends ORM
  3. {
  4.     public function rules()
  5.     {
  6.         return array(
  7.             'author' => array(
  8.                 array('not_empty')
  9.             ),
  10.             'body' => array(
  11.                 array('not_empty')
  12.             )
  13.         );
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement