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

Take more control of CGridview and model searching (related model or another controller)

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos5 comments – viewed 29,504 times – ( +5 ) – version 1.1
Suppose you have an Application in Yii that manages hotels each one has many customers.

Using recaptchlib in your projects

Created 5 years ago by Antonio RamirezHow-tos2 comments – viewed 9,938 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 5 years ago by TrejderHow-tos0 comments – viewed 15,627 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,878 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 23,910 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,330 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,209 times – ( +5 ) – version 1.1

How to provide a fallback or mapping for translation messages?

Created 3 years ago by schmunkHow-tos1 comment – viewed 5,447 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,239 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,039 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.