Advertisement
gadjov

PostController

Jul 16th, 2016
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. <?php
  2.  
  3. class PostController extends BaseController
  4. {
  5.     function onInit()
  6.     {
  7.         $this->authorize();
  8.     }
  9.  
  10.     public function index()
  11.     {
  12.         $this->posts = $this->model->getAll();
  13.     }
  14.  
  15.     public function create()
  16.     {
  17.  
  18.     }
  19.  
  20.     public function edit(int $id)
  21.     {
  22.  
  23.     }
  24.  
  25.     public function delete(int $id)
  26.     {
  27.  
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement