Top "Yii2" questions

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

Changing value of an attribute in DetailView widget

I have a table named Play and I'm showing details of each record in Yii2 detail view widget. I have …

yii2 detailview
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
What is the difference between $with and $joinWith in Yii2 and when to use them?

In the API documentation it is specified that $joinWith - A list of relations that this query should be joined …

php yii yii2
Trying to get property of non-object in yii2

I want access to hasMany relation but i get error with this content PHP Notice – yii\base\ErrorException Trying to …

php yii2 yii2-model
Yii Framework Unknown Property Exception

I know this might seem trivial but I really can't figure it out. I'm starting to develop a database application …

php mysql yii yii2 yii-components
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
How to make custom settings data available globally in Yii 2?

I'm creating an application which stores some settings in the database and ideally it would be good to load these …

php yii yii2
PHP, Yii2 GridView filtering on relational value

Following on from this: Yii2 how does search() in SearchModel work? I would like to be able to filter a …

php entity-relationship yii2
Invalid Configuration – yii\base\InvalidConfigException

I'm using xampp for windows 8 and i have recently installed dektrium/yii2-user. I have followed the installation instructions here: …

php yii2 yii2-user
Yii2: How do change Pagination-Per-Page into RESTful Web Service API?

I am developing an application using AngularJS for the frontend and Yii2 for the backend. The frontend requires a comprehensive …

rest pagination yii2