Wiki

Articles in category "tips", sorted by ratingX
Displaying 51-60 of 153 result(s).

using multiple radio button

Created 5 years ago by francis jaTips4 comments – viewed 49,714 times – ( +9 / -2 ) – version 1.1
When we use multiple radio buttons with same name in Yii many people have the problem on getting the value of the selected radiobutton. The radioButtonList can be used for that, but if we need to use radioButton itself to place the button any where in a view, we need to include one more parameter in htmloption array().

Update two models with one view

Created 5 years ago by sensorarioTips11 comments – viewed 41,233 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

Use application on production/development environment without making changes

Created 5 years ago by ifdatticTips3 comments – viewed 50,744 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.

An important tip when you are using CArrayDataProvider.

Created 4 years ago by sirin kTips0 comments – viewed 12,499 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”.

Yii Rights Management Tips

Created 2 years ago by Rajith RTips0 comments – viewed 6,226 times – ( +6 / -1 ) – version 1.1
yii rights some tips..

New Relic Error Alert with Yii

Created 3 years ago by simon604Tips2 comments – viewed 15,649 times – ( +6 / -1 ) – version 1.1
Introduction

Quick Tip about Pagination Params

Created 6 years ago by Antonio RamirezTips2 comments – viewed 29,626 times – ( +6 / -1 ) – version 1.1
Developing custom Grids and ListViews for my new CMS I was facing a small challenge: If I was to update/delete/batch delete items of my Grid, how would I return to the current page view?
tags: Pagination

Yii code completion and calltips in Komodo Edit

Created 6 years ago by viterTips1 comment – viewed 11,920 times – ( +6 / -1 ) – version 1.1
My favourite editor is Komodo Edit (free and crossplatform) and I use it for my everyday coding work. Just recently I found out how to make it help me to work with Yii. :) So follow these steps:
tags: Komodo Edit

CJuiTabs Content

Created 4 years ago by mbalaTips3 comments – viewed 15,097 times – ( +6 / -1 ) – version 1.1
When I used CJuiTabs I did something. They are
tags: CJuiTabs

Fixing extensions without modifying their code

Created 4 years ago by schmunkTips3 comments – viewed 10,044 times – ( +6 / -1 ) – version 1.1
If you're working a lot with extensions you often stumble upon problems, when you want to include them into your custom web application, like hardcoded or absolute path aliases or classes extended from core application components, which implement addiditonal features.