Wiki

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

View a related field in CGridView

Created 2 months ago by rafaelt88Tips1 comment – viewed 1,578 times – ( +5 ) – version 1.1
Generally we need to show one or more fields from a model that is related to another model used in CGridView. For our case we will use two related models, which explain how to use model "A" fields in a CGridView that used model "B".

using jqbargraph to create beautiful graphs

Created about a year ago by MAHESH.E.UTips1 comment – viewed 5,564 times – ( +5 ) – version 1.1
If you are about to create a graph, the best option i would suggest is the jqbargraph.

Using updateAll and deleteAll with scopes

Created 2 months ago by le_topHow-tos4 comments – viewed 2,492 times – ( +5 ) – version 1.1
Using CActiveRecord->updateAll() and CActiveRecord->deleteAll() with scopes and criteria requires some tricks that are explained in this article. While findAll() , find() and some other methods use scopes automatically, updateAll() and deleteAll() do not.

Alternative folder structure for a standard Yii app

Created about a year ago by TrejderHow-tos4 comments – viewed 8,126 times – ( +5 ) – version 1.1
I found a standard Yii app's protected folder structure nearly perfect. With a few simple moves and a little bit change to the code, I managed to bring it to the level, which I found as fully perfect. I want to share my point of view, in case someone would like to use this structure as well.

CGridView: Adding behaviors from configuration, and template items from behaviors to CGridView

Created about a year ago by le_topTips0 comments – viewed 6,464 times – ( +5 ) – version 1.1
Changing the way a CGridView is rendered from the configuration file, or through behaviors specified at the moment it is used, is handy to extend a CGridView without creating tons of different classes for it. I am surprised that this is not in the default implementation, so I made my default CGridView implementation.

How to implement an event and attach it in a behavior

Created about a year ago by seb7How-tos0 comments – viewed 10,010 times – ( +5 ) – version 1.1
This page explains how to implement an event and catch that event in a behavior.
tags: event, behavior

Implementing a WebDAV server using SabreDAV

Created about a year ago by nineinchnickTutorials5 comments – viewed 10,861 times – ( +5 )
This article will show you how to easily implement a WebDAV server in your project using SabreDAV.

free PHP IDE CodeLobster supports Yii framework

Created 2 years ago by clodTutorials0 comments – viewed 12,006 times – ( +5 ) – version 1.1
This page is created to supply short directions and general tips for managing a Yii application in Codelobster PHP Edition.

How to provide a fallback or mapping for translation messages?

Created about a year ago by schmunkHow-tos1 comment – viewed 3,353 times – ( +5 )
Sometimes you want to use exisiting translations for locales, which do not directly match. An example would be a website targeting Germany (de_de), Austria (de_at) and Switzerland (de_ch, fr_ch, it_ch). Although you may have exisiting translations for German (de), French (fr) and Italian (it), there are problems using it directly.

Checking for "expired" sessions/logins on the client side

Created about a year ago by le_topHow-tos0 comments – viewed 12,746 times – ( +5 ) – version 1.1
Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.