Answer the question
In order to leave comments, you need to log in
Yii2. Why is the module parameter not saved when ajax request to the controller action?
I have a problem - why is the module parameter not saved during ajax request to the controller action of this module? Despite the fact that I set this parameter before the ajax request, by calling the method of the main module file:
class SanexFilter extends \yii\base\Module
{
public $controllerNamespace = 'sanex\filter\controllers';
public function init()
{
parent::init();
}
public function setFilter($filter)
{
$this->params['filter'] = $filter;
return $this->runAction('filter/set-filter');
}
}
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