Wiki

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

Render a form in a Modal Popup using ajax

Created 5 months ago by thiagoc7How-tos9 comments – viewed 13,038 times – ( +6 ) – version 2.0
Nowdays is very common webapps use this feature. With Yii2 this is very easy.
tags: yii2, AJAX, modal

ACL and RBAC

Created 2 years ago by zeroByteHow-tos0 comments – viewed 12,900 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.

Popup AJAX DialogBox without any extension

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

Multilanguage and SEO friendly

Created about a year ago by InterboyHow-tos1 comment – viewed 12,744 times – ( +5 )
In your application configuration (protected/config/main.php), set the sourceLanguage parameter to English:

Activate captcha after unsuccessful login attempts

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

Changing Controllers Name

Created 3 years ago by TrejderHow-tos0 comments – viewed 12,483 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.

Sub-domains with different databases in Yii!

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

defaultScope

Created about a year ago by Gerhard LiebenbergHow-tos4 comments – viewed 12,084 times – ( +4 / -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().

How to handle decimal separators (e.g comma instead of dot) for l18n

Created 2 years ago by jpabloHow-tos2 comments – viewed 11,883 times – ( +2 ) – version 1.1
Yii i18n does not cover decimal format. Some languages like Spanish (I live in Argentina) uses comma ',' instead of dot '.' as decimal separator.