Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 161-170 of 354 result(s).

Using recaptchlib in your projects

Created 6 years ago by Antonio RamirezHow-tos2 comments – viewed 10,053 times – ( +5 ) – version 1.1
It is good when someone writes extensions for us but trust, sometimes we forget about other approaches that, if we know the library, we shouldn't forget.

Changing Controllers Name

Created 6 years ago by TrejderHow-tos0 comments – viewed 15,776 times – ( +5 ) – version 1.1
This very short how-to presents steps required to change controller name. It is oriented for less experienced users, which are starting their journey with Yii, to avoid common newbie pitfalls.

How to use EzComponents in Yii

Created 5 years ago by EhsanjsHow-tos0 comments – viewed 8,921 times – ( +5 ) – version 1.1
change your index.php

Using updateAll and deleteAll with scopes

Created 2 years ago by le_topHow-tos4 comments – viewed 24,700 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 3 years ago by TrejderHow-tos4 comments – viewed 13,594 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.

Check users online, user last activity, user last ip

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

How to provide a fallback or mapping for translation messages?

Created 3 years ago by schmunkHow-tos1 comment – viewed 5,559 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 20,676 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,367 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 35,383 times – ( +8 / -1 ) – version 1.1
Hi Everyone