Answer the question
In order to leave comments, you need to log in
Why the 400 bad request. error?
behaviours:
[
'allow' => true,
'roles' => ['?'],
'verbs' => ['POST', 'GET'],
'actions' => [
'get-info', 'add'
]
],
Answer the question
In order to leave comments, you need to log in
$behaviors[] = [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['delete'],
'copy' => ['post']
]
];
those. action-s get-info and add are available to all users.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question