Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. Class Controller_Backend extends Controller_Template {
  2.  
  3.     public $template = 'backend/backend';
  4.  
  5.     public function before()
  6.     {
  7.         parent::before();
  8.     }
  9.  
  10.     public function action_index()
  11.     {
  12.         $backend = new Model_Backend();
  13.         $this->template->pages = $backend->pages();
  14.     }
  15.  
  16.     public function action_edit()
  17.     {
  18.         $backend = new Model_Backend();
  19.         $this->template->page = $backend->edit($id);
  20.     }
  21.  
  22.     public function aftter()
  23.     {
  24.         parent::after();
  25.     }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement