Answer the question
In order to leave comments, you need to log in
How to change direction of POST request?
I have a form that submits some data. But according to yii2 debugger it sends them here:
localhost/basic/web/index.php
How can I make this POST be processed in another action in my controller?
For example, there is such action^
public function actionForm()
{
$Form = new Form();
if ($Form->load(Yii::$app->request->post('Form')) && $Form->save()) {
return 'ok';
} else {
return 'false';
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question