Web
Images
Videos
Academic
Dict
Maps
More
Flights
Notebook
requirePost
Sample Sentence
Definition:
All
All
Category:
All
All
,
Oral
Oral
,
Written
Written
,
Title
Title
,
Technical
Technical
Source:
All
All
,
Dictionary
Dictionary
,
Web
Web
Difficulty:
All
All
,
Easy
Easy
,
Middle
Middle
,
Hard
Hard
More sentence filters
Hide sentence filters
1.
Like the
requirePost
method
,
requireAuth is
passed
a
list
of
actions
within the
controller
you
want
to
protect
.
与
requirePost
方法
一样
,
向
requireAuth
传递
一个
需要
保护
的
控制器
操作
列表
。
yǔ
requirePost
fāng fǎ
yí yàng
,
xiàng
requireAuth
chuán dì
yī gè
xū yào
bǎo hù
de
kòng zhì qì
cāo zuò
liè biǎo
。
www.ibm.com
2.
The
requirePost
method
tells
CakePHP
to
ignore
any
information
submitted
to the
specified
action
unless
POST
was
used
.
requirePost
方法
通知
CakePHP
忽略
提交
给
指定
操作
的
任何
信息
,
除非
使用
的
是
POST
。
requirePost
fāng fǎ
tōng zhī
CakePHP
hū lüè
tí jiāo
gěi
zhǐ dìng
cāo zuò
de
rèn hé
xìn xī
,
chú fēi
shǐ yòng
de
shì
POST
。
www.ibm.com
3.
The
requirePost
method
is
passed
a
list of
actions
within the
controller
you
want
to
protect
.
向
requirePost
方法
传递
一个
需要
保护
的
控制器
操作
列表
。
xiàng
requirePost
fāng fǎ
chuán dì
yī gè
xū yào
bǎo hù
de
kòng zhì qì
cāo zuò
liè biǎo
。
www.ibm.com
4.
Using
requireAuth
and
requirePost
together
is
a
great
way
to
help
lock down your
application
.
结合
使用
requireAuth
和
requirePost
是
一种
非常好
的
帮助
保护
应用程序
的
方法
。
jié hé
shǐ yòng
requireAuth
hé
requirePost
shì
yī zhǒng
fēi cháng hǎo
de
bāng zhù
bǎo hù
yìng yòng chéng xù
de
fāng fǎ
。
www.ibm.com
5.
If
a
request
is
rejected
by
requirePost
or
requireAuth
,
the
application
exits
and
the
user
is
sent
a
404
page
.
如果
请求
被
requirePost
或
requireAuth
拒绝
,
则
应用程序
退出
并
向
用户
发送
一个
404
页面
。
rú guǒ
qǐng qiú
bèi
requirePost
huò
requireAuth
jù jué
,
zé
yìng yòng chéng xù
tuì chū
bìng
xiàng
yòng hù
fā sòng
yī gè
sì bǎi líng sì
yè miàn
。
www.ibm.com