- added trait for checking authorisation with redirect stored in session to return - shows which controllers requires auth, adds check function
25 lines
403 B
PHP
25 lines
403 B
PHP
<?php
|
|
|
|
interface CRUD {
|
|
|
|
|
|
// list all
|
|
public function index($f3);
|
|
|
|
// show form
|
|
public function createForm($f3);
|
|
|
|
// handle POST
|
|
public function create($f3);
|
|
|
|
// show single
|
|
public function view($f3);
|
|
|
|
// show edit form
|
|
public function editForm($f3);
|
|
|
|
// handle post
|
|
public function update($f3);
|
|
|
|
|
|
} |