PHP Class PostsController, miniPHP

Inheritance: extends Controller
Afficher le fichier Open project: omarelgabry/miniphp Class Usage Examples

Méthodes publiques

Méthode Description
beforeAction ( )
create ( ) creates a new post
delete ( $postId )
index ( ) show posts page
isAuthorized ( )
newPost ( ) show new post form
update ( ) update a post
view ( integer | string $postId ) view a post

Method Details

beforeAction() public méthode

public beforeAction ( )

create() public méthode

creates a new post
public create ( )

delete() public méthode

public delete ( $postId )

index() public méthode

show posts page
public index ( )

isAuthorized() public méthode

public isAuthorized ( )

newPost() public méthode

show new post form
public newPost ( )

update() public méthode

update a post
public update ( )

view() public méthode

view a post
public view ( integer | string $postId )
$postId integer | string