Top "Yii2" questions

Yii 2 is the latest version of the Yii framework - a high-performance, component-based PHP framework

How to add custom class to label in Yii2 form field?

I want to add a custom class to label tag in this code in Yii2, but I don't know how. &…

yii2 form-fields
Yii2 REST query

Hy. I have a ProductController which extends the yii\rest\ActiveController. Question is that how can i make querys via …

api rest yii2
Yii2: Updating Grid-view using Pjax

Following this Wiki Yii 2.0: Pjax on ActiveForm and GridView - Yii2 I have tried to use my gridview to update …

php gridview yii2 pjax
Yii2, Custom validation message with attribute names

In Login form, I need to have glyphicon-remove icon at the end of every validation message with the corresponding field …

php yii2 yii2-model yii2-validation
Yii2 activeform ajax submit and validation

Currently to achieve ajax submit and validation at the same time. I'm using custom function like: $('.edit_form').submit(…

javascript php ajax yii2 active-form
model->attributes in Yii2 always has NULL value

I have one temporary model as viewModel. In my CRUD actions (for example actionCreate) I want to get this viewModel …

php yii-extensions yii yii2
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: Remove "(not set)" in GridView and DetailView for null values

How can I remove or replace strings (not set) in my GridView and ListView?

gridview view yii2 detailview
Set a where condition for dataprovider in specific controller method

I am looking to set a condition only for a single action in the controller, so I don't want to …

search model yii2 conditional-statements dataprovider
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