Wiki

Sorted by ratingX
Displaying 381-390 of 777 result(s).

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

Created 3 years ago by le_topTips0 comments – viewed 8,885 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.

Implementing a WebDAV server using SabreDAV

Created 3 years ago by nineinchnickTutorials6 comments – viewed 21,725 times – ( +5 )
This article will show you how to easily implement a WebDAV server in your project using SabreDAV.

Debugging CActiveRecord failed save() attempts

Created 3 years ago by BoazTips0 comments – viewed 20,023 times – ( +5 ) – version 1.1
When you're filling up a form of a CActiveRecord (using CActiveForm for example), usually you'll construct your code so that in case of validation error you'll get back the form with the error displayed back to you, typically when CActiveForm.errorSummary() is used. This is how its done by Gii.

Check users online, user last activity, user last ip

Created 2 years ago by frazelliHow-tos5 comments – viewed 8,982 times – ( +5 ) – version 1.1
DbHttpSession

free PHP IDE CodeLobster supports Yii framework

Created 5 years ago by clodTutorials0 comments – viewed 14,415 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 3 years ago by schmunkHow-tos1 comment – viewed 5,391 times – ( +5 ) – version 1.1
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.

multiple CActiveDataProviders in one CGridView

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos7 comments – viewed 19,987 times – ( +8 / -1 ) – 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 3 years ago by Kostas Apazidis (KonApaz)How-tos4 comments – viewed 18,826 times – ( +8 / -1 ) – 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 3 years ago by whatifHow-tos2 comments – viewed 33,838 times – ( +8 / -1 ) – version 1.1
Hi Everyone

Use application on production/development environment without making changes

Created 4 years ago by ifdatticTips3 comments – viewed 46,025 times – ( +8 / -1 ) – 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.