Wiki

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

Alternative folder structure for a standard Yii app

Created 3 years ago by TrejderHow-tos4 comments – viewed 13,822 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 3 years ago by le_topTips0 comments – viewed 9,271 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 22,997 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 21,170 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 9,769 times – ( +5 ) – version 1.1
DbHttpSession

free PHP IDE CodeLobster supports Yii framework

Created 5 years ago by clodTutorials0 comments – viewed 14,688 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,652 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 21,046 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 19,581 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 36,235 times – ( +8 / -1 ) – version 1.1
Hi Everyone