Wiki

Sorted by ratingX
Displaying 341-350 of 786 result(s).

Update two models with one view

Created 6 years ago by sensorarioTips11 comments – viewed 42,564 times – ( +10 / -3 ) – version 1.1
Suppose to have two models: Users and Emails. You do not want to store email in a Users model. And User can have 0 or many emails. This is the form generated to create a new user (just username).
tags: database, model, view, form

Add Beautiful Radio/Checkbox Buttons To Grid

Created 4 years ago by waterloomattHow-tos1 comment – viewed 26,282 times – ( +10 / -3 ) – version 1.1
This is a tutorial on how to create slick looking status buttons to update a model's status via a grid. Note** This tutorial uses Yii Bootstrap for styling.

Date Picker by examples

Created 4 years ago by InterboyHow-tos6 comments – viewed 102,255 times – ( +10 / -3 ) – version 1.1
CJuiDatePicker displays a datepicker. CJuiDatePicker encapsulates the JUI datepicker plugin.

Simple Mail Queue

Created 4 years ago by waterloomattTutorials3 comments – viewed 18,134 times – ( +10 / -3 ) – version 1.1
This tutorial shows how to create a simple mail queue. It is usually run from a cron job but can be run from the command line too.

multiple CActiveDataProviders in one CGridView

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos7 comments – viewed 23,373 times – ( +8 / -2 ) – version 1.1
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

Popup AJAX DialogBox without any extension

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos4 comments – viewed 21,433 times – ( +8 / -2 ) – version 1.1
In this wiki I explain how to show a default popup dialogbox (like Gii does) using an existing module.

How to use Expression in default AccessControl to allow only the owner to do some action

Created 4 years ago by whatifHow-tos2 comments – viewed 41,353 times – ( +8 / -2 ) – version 1.1
Hi Everyone

Use application on production/development environment without making changes

Created 6 years ago by ifdatticTips3 comments – viewed 53,590 times – ( +8 / -2 ) – version 1.1
I like programing on my localhost, however it really bugged me to make changes to index.php & config files on my production server. After combining all available wiki articles on this topic and some trial and error this is what I use for my applications so I could just upload it to production server and it will work without any changes.

i18n All-in-one format and timezone conversions for date, time, timestamp and datetime.

Created 4 years ago by Gerhard LiebenbergHow-tos3 comments – viewed 22,262 times – ( +8 / -2 ) – version 1.1
Countries sometimes change their laws pertaining to time zones and daylight saving times. This means that GMT+2 can be a different local time this August compared to last August! It could even be a different date!

An important tip when you are using CArrayDataProvider.

Created 5 years ago by sirin kTips0 comments – viewed 13,415 times – ( +8 / -2 ) – version 1.1
Yii's CArrayDataProvider is very helpful to display model relation data's directly on it.But it is truely a confusing one because by default it will assume a table field named “id” as primary key for its pagination purpose and what if you dont have field named “id” as primary key on your table? so its truely confusing and if you tried to display without an “id” field on ur table you will get an error like “yourmodel.id is not defined”.