Top "Yii2-advanced-app" questions

Yii 2 Advanced Application Template is a skeleton Yii 2 application best for developing complex Web applications with multiple tiers.

Render view Yii2

How do you render a view file in the profile module's index view file. I tried this: <?=$this->…

yii2 yii2-advanced-app
Yii2 cors filters error that No 'Access-Control-Allow-Origin' header is present

Following This question i have set my rest controller behaviour as public function behaviors() { $behaviors = parent::behaviors(); $auth= $behaviors['authenticator'] = [ …

php angular yii2 yii2-advanced-app
YII2 : Add Dynamic form fields and their validations

I am adding dynamic form fields onChange of dropdown. Both types of fields are coming from different models and go …

php dynamic yii2 yii2-advanced-app
Yii2: ActiveForm field numeric, length => 8

I'm trying to make yii2 to validate my ActiveForm field that should be numeric and of 8 characters long. Following is …

php yii2 yii2-advanced-app
Yii2 params access within local config file in common directory

I'm using Yii2 advanced template, I want to access params.php in main-local.php file, I called this ways: main-local.…

yii2 yii2-advanced-app
Yii2 How to call controller action from the view

I have a function in the controller that manipulates data the way I wanted. Now I want to call that …

model-view-controller yii2 yii2-advanced-app
Yii 2 gii is generating view files on different directory

I am new to yii framework. On yii version:2.0.1 I have created a module in which I tried to generate …

php yii2 yii2-advanced-app
Bad Request (#400) - Missing required parameters: id in YII2

I want to make a CRUD operation using GII Tool, but I get the error message Missing required parameters: id, …

yii2 yii2-advanced-app
Order by rand() in yii2

I want to write following query in yii2, but I can't get the expected output: SELECT * FROM user where category_…

mysql yii2 yii2-advanced-app yii2-basic-app
Equivalent of "Yii::app()->runController('controller/action')" in Yii2?

What is the equivalent function of: Yii::app()->runController('controller/action') in Yii2? I would like to call …

yii2 yii2-advanced-app