We are going to deploy the new yiiframework.com website on March 23, 2018 from 8:00 to 12:00 UTC.
Website and Yii documentation will not be available in this time frame. Check the news for more details.


Articles in category "how-tos", sorted by viewsX
Displaying 351-355 of 355 result(s).

Special Validation Rule - Fill out a Field or another group of Fields

Created 3 years ago by KabinenkofferHow-tos0 comments – viewed 4,971 times – ( +1 / -3 ) – version 1.1
If you have a form, you sometimes need special validation Rules not included in Yii. Here i share a special rule with you, i just wrote. Maybe you have the case, when a user needs to Fill ou Field A oder the Fields B, C and D.

MailGun Api Wrapper to send emails

Created 3 years ago by VINAY Kr. SHARMAHow-tos0 comments – viewed 4,913 times – ( +1 / -1 ) – version 1.1
MailGun.php Class
tags: mailgun, email

Find geolocation info of client through another API

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 4,408 times – ( +1 / -1 ) – version 1.1
This wiki shows how to get the geolocation info of the client using another server API It could be write also as extension but there are a lots of APIs that change the below code So, I wrote the below code that works for one of them (using www.geoplugin.net)

MigrateCommand class for multiple sites using one code base

Created 5 years ago by Hudson NguyenHow-tos1 comment – viewed 4,145 times – ( +1 / -1 ) – version 1.1
My CMS supports multiple sites using one code base therefore the db connection can only be configured by detecting the site's domain.

Using rights extension with different table and column name

Created 3 years ago by Ibrar TuriHow-tos2 comments – viewed 3,728 times – ( +1 / -1 ) – version 1.1
Once you have installed and configured the rights extension in your application, you can change the table name from 'User' to any table name you want and similarly for 'username' column to any other column name.