Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class PostController extends BaseController
- {
- function onInit()
- {
- $this->authorize();
- }
- public function index()
- {
- $this->posts = $this->model->getAll();
- }
- public function create()
- {
- }
- public function edit(int $id)
- {
- }
- public function delete(int $id)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement