Wiki

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

Popup AJAX DialogBox without any extension

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

How to create a criteria condition for a multiple value text search i.e a "LIKE IN"

Created 9 months ago by tophHow-tos2 comments – viewed 12,614 times – ( -1 ) – version 1.1
This is a shortcut for adding a text search for multiple values i.e.

Activate captcha after unsuccessful login attempts

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

Multilanguage and SEO friendly

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

Changing Controllers Name

Created 3 years ago by TrejderHow-tos0 comments – viewed 12,412 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,215 times – ( +2 ) – version 1.1
Sub-domains with different databases in Yii!

Render a form in a Modal Popup using ajax

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

defaultScope

Created about a year ago by Gerhard LiebenbergHow-tos4 comments – viewed 11,937 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,814 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.