Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 141-150 of 322 result(s).

Cheat Sheet: Displaying Name instead of Numbers and Displaying Alphanumeric instead of numeric values

Created 2 years ago by skwordenHow-tos4 comments – viewed 13,515 times – ( +4 / -1 ) – version 1.1
I keep a reference to some simple but painful task if you forget a common or something. I am new to Yii and this took awhile for me to figure out. Everything I read said do this or do that and not a single one worked for me. However, the following did.

Activate captcha after unsuccessful login attempts

Created about a year ago by KonApazHow-tos21 comments – viewed 13,498 times – ( +11 / -1 ) – version 1.1
Like gmail, if you have tree or more unsuccessful login attemps a captcha appears

Popup AJAX DialogBox without any extension

Created about a year ago by KonApazHow-tos6 comments – viewed 13,433 times – ( +7 / -1 )
In this wiki I explain how to show a default popup dialogbox (like Gii does) using an existing module.

ACL and RBAC

Created 2 years ago by zeroByteHow-tos0 comments – viewed 13,422 times – version 1.1
This HowTo assumes that you have a smattering of ACL in general and of how the acl-extension works basically. It will introduce you into the abstract and give you a hint on how to use Business-Rules. If you have in-depth questions, please refer to the extension documentation. Using ACL in an RBAC-manner cannot and should never obscure the fact that the underlying system is still ACL-based. In fact, the Business-Rules are just another layer in the permission-check plan.

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 5 months ago by ThePr0f3550rHow-tos6 comments – viewed 13,354 times – ( +11 ) – version 2.0
Yii2 comes with a charming twitter bootstrap version 3. But if it is less, then you can integrate with web templates that you like. One example is wonderfull template "adminLTE"
tags: yii2, theme, adminLTE

defaultScope

Created about a year ago by Gerhard LiebenbergHow-tos4 comments – viewed 12,882 times – ( +5 / -1 ) – version 1.1
This example includes a composite condition as well as an empty condition - as if you bypass or disable defaultScope without using resetScope().

Changing Controllers Name

Created 4 years ago by TrejderHow-tos0 comments – viewed 12,731 times – ( +4 ) – 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.

multiple CActiveDataProviders in one CGridView

Created about a year ago by KonApazHow-tos6 comments – viewed 12,674 times – ( +7 / -1 ) – version 1.1
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

Sub-domains with different databases in Yii!

Created 3 years ago by jwerdHow-tos4 comments – viewed 12,558 times – ( +2 ) – version 1.1
Sub-domains with different databases in Yii!

i18n All-in-one format and timezone conversions for date, time, timestamp and datetime.

Created about a year ago by Gerhard LiebenbergHow-tos3 comments – viewed 12,477 times – ( +7 / -1 ) – version 1.1
Countries sometimes change their laws pertaining to timezones and daylight saving times. This means that GMT+2 can be a different time this August compared to last August! However, by using php's DateTime class (instead of timestamps), we can do both "format" and "timezone" conversions on a single DateTime object (only 2 lines of code) for date, time, timestamp and datetime types - while php takes care of nightmares such as current and historical timezones and daylight saving times.