Теперь первый параметр в URL считаем всегда городом
$this->registerJs("
$('.someLink').on('click',function(){
$('.someBlock').load('/someContrioller/someAction');
});
");
public function actionSomeAction(){
return $this->renderAjax('some_view');
}
не отрабатывает корректно
Какие инструменты и фраемворки стоит использовать для работы с css, js, html и почему?
Есть ли что то, что позволит один раз нарисовать компонент, а потом удобно его использовать?
$this->alterColumn('user','score','integer NOT NULL');
public function actionRender($view, $params = []) { // перегрузил
if(!Yii::$app->request->isAjax)
throw new MethodNotAllowedHttpException('только ajax, черти');
if (StringHelper::startsWith($this->action->id, 'step') ) //и другие проверки
return $this->renderAjax($view, $params);
throw new ErrorException('чет не пашет');
}
'log' => [
'traceLevel' => 3,
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
],
],