PHP Class PostsController, miniPHP

Inheritance: extends Controller
ファイルを表示 Open project: omarelgabry/miniphp Class Usage Examples

Public Methods

Method 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 method

public beforeAction ( )

create() public method

creates a new post
public create ( )

delete() public method

public delete ( $postId )

index() public method

show posts page
public index ( )

isAuthorized() public method

public isAuthorized ( )

newPost() public method

show new post form
public newPost ( )

update() public method

update a post
public update ( )

view() public method

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