I have got two tables I want to get all the activities for PROFESSIONAL id 16 along with activities from all users to whom PROFESSIONAL id 16 is f ...
I have got two tables I want to get all the activities for PROFESSIONAL id 16 along with activities from all users to whom PROFESSIONAL id 16 is f ...
In Yii 1.1.*, how to find all data (via CActiveRecord implementation) where an attributes is NULL, kinda like: It DOES NOT work because it produ ...
When I dump all variables of a model in controller, I can see: How can I get for example 'documents_id' element and use it in that controller? ...
In a Yii 1.1 application I'm displaying the data a table using the CGridView. Curretly all columns of model's table (id, type) and even the on-the- ...
I have 2 tables with the following structure: When I add a record to table Work I get data with ListData from table Store. The problem is: How can ...
In some cases you may have a default or a primary row with a one to many relationship. Which is determined by a column like primary. And if you change ...
ok, the thing is i am making a setup with something like wordpress multisite setup but i am using Yii so, here instead of site, i have "shops" there ...
This works very well: but what I want is: When I try that code, I get following error: CDbCommand failed to execute the SQL statement: SQLSTATE ...
I need to create a new attribute in the model and something weird is happening: this code, works fine: this code, does not: why? I get a blank ...
The output grid has following sequence of columns of a table -> B, C, D, E, A (same sequence as in table in database). But I need this sequence of ...
How to change specific symbol of YII cactiverecord model's attribute ? Dont understand why it doesnt work: ...
I have a recursive many to many relationship with objective. My Relational model is: I have been generated my model in Yii framework with gii as sh ...
Suppose you have a relation like the following, and you want to find all accounts that are under a given customer: (For Customer 1, it's accounts 1 ...
I have some sharded tables in a MySQL environment. I use Yii so I wanted to add some support for the sharding. I have managed to make a custom CActive ...
Trying to figure out a decent approach here... I have a form, where based on if a user selects a drop down in the form or not, it shows or hides a fe ...
I have a problem with CActiveRecord.rules Photo_path should be required only when the model is created, in update view it can be empty. I dont kno ...
My Goal: I am trying to filter a model, based on a GET parameter, and populate a form based on this. What I require is that when users select the upd ...
I have 2 tables. tables have relation (HAS_MANY) table1: user(id,name) table2:address(id,userId,address) user can has some address I define relation i ...
I used the CRUD generator from a legacy database. When searching for a column value I get the following error: htmlspecialchars() expects paramete ...
Lets say I have a record like the following Users - id - username - password While login i want to check user's x_username, x_password with this re ...