Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class Controller_Backend extends Controller_Template {
- public $template = 'backend/backend';
- public function before()
- {
- parent::before();
- }
- public function action_index()
- {
- $backend = new Model_Backend();
- $this->template->pages = $backend->pages();
- }
- public function action_edit()
- {
- $backend = new Model_Backend();
- $this->template->page = $backend->edit($id);
- }
- public function aftter()
- {
- parent::after();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement