I just found a problem with my project. It's simply not saving data in database. I couldn't find where is the problem, so please help to solve this p ...
I just found a problem with my project. It's simply not saving data in database. I couldn't find where is the problem, so please help to solve this p ...
Model Search Method Basically, I have a 1:n relationship where in I need only latest record from child table. The parent table data will be display ...
I'd like to render a list of results in a view which have been returned from an external API, rather than a database table. It is possible to create ...
I am a Yii newbie who is trying to understand how this particular situation would be handled. If I have 2 models, The first model contains date and ...
I'm trying to update a row when a user gets an authentication key, but my $model->attributes remain empty when I save my $data array to them. Here' ...
I have this validation rule in an user table that makes sure user email is unique. Now I don't want to skip this validation, but want to give an optio ...
So, I got a series of data that I need to insert into a table. Right now I am using a for loop to iterate through each entry and save the model one by ...
What If I have an input field for example: UserEmail: UserPhoneNumber: UserOldPasword: UserNewPassword: UserRetypePassword: And on my a ...
I have this weird issue where the values seems to get posted on form submit but still there the controller seems to not find it. I am saving three mod ...
I have a dropdown that I want to populate when an item in another dropdown is selected. Both the dropdown are tied to data/model passed on from contro ...
Below is the relation between three tables I have. Now, while creating a new user through user/create action, the form takes input for both user ta ...
I am trying to modify 1 controller to work with 2 models. This is what I have done with loadModel function in my controller As you can see I want t ...
I'm a Yii framework user. mostly I define functions as public static function in my model files like the example function below. I wonder if I'm d ...
There are two models, User and UserProfile. When saving a new user, a single form is used to save data to both model/tables.Here's the controller acti ...
I have a problem with Yii: I have a Model called Slider.php and a controller called SliderController.php . I wrote this code to make the user upload ...
In the Yii MVC, I've added a column to my database in my model using: $success = Yii::app()->ft_website_prod->createCommand()->addColumn('f ...
I have a view (_form.php) with fields (name,summary) submit button. If I click on submit button, it should update Name field of One model and Summary ...
My straight forward question: If I have a many-to-many relation in my database (as the following tables) Should UserRole have its own Model when c ...
my question consists of two parts: 1, I'm developing small ticketing software for technical support. I have model and views for Workorder (type of ti ...
Assuming that I have an online store whereby products are stocked and sold by either integer quantity or decimal weight. There are different types of ...