Toggle navigation
Hot Examples
KO
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
검색
홈
PostsController
PHP 클래스 PostsController, miniPHP
상속:
extends
Controller
파일 보기
프로젝트 열기: omarelgabry/miniphp
1 사용 예제들
공개 메소드들
메소드
설명
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
메소드 상세
beforeAction()
공개
메소드
public
beforeAction
( )
create()
공개
메소드
creates a new post
public
create
( )
delete()
공개
메소드
public
delete
(
$postId
)
index()
공개
메소드
show posts page
public
index
( )
isAuthorized()
공개
메소드
public
isAuthorized
( )
newPost()
공개
메소드
show new post form
public
newPost
( )
update()
공개
메소드
update a post
public
update
( )
view()
공개
메소드
view a post
public
view
(
integer
|
string
$postId
)
$postId
integer
|
string