Wiki

Sorted by viewsX
Displaying 411-420 of 786 result(s).

A simple class to use a different db for a module

Created 6 years ago by tydeas_drTips3 comments – viewed 19,805 times – ( +10 / -1 ) – version 1.1
What would you do if you want/need to have a different than the main database connection in an module's models?

How to implement form events

Created 3 years ago by Antonio RamirezHow-tos4 comments – viewed 19,802 times – ( +6 / -1 ) – version 2.0
You have that, when a product is on development they can change its API anytime. This change is quite important though, its related on how to set the events of your form, for example, the useful beforeSubmit.
tags: yii2, forms, how to

Force a User to Change Their Password (ChangePasswordFilter)

Created 6 years ago by waterloomattTutorials2 comments – viewed 19,746 times – ( +16 / -3 ) – version 1.1
Sometimes you need to force a user to change their password after x number of days. This article describes how to implement this using a filter, ChangePasswordFilter.

Logout CSRF Protection

Created 6 years ago by Rodrigo CoelhoTutorials1 comment – viewed 19,687 times – ( +10 / -1 ) – version 1.1
CSRF is the acronymn for Cross-site request forgery. It is an attack which forces an end user to execute unwanted actions on a web application in which he/she is currently authenticated.

Remove Byte Order Mark (BOM) from files recursively

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 19,468 times – ( +6 / -2 ) – version all
Ok, this wiki is not only for yii projects.

Yii2 default values for Index data Provider

Created 3 years ago by CTalaTips3 comments – viewed 19,426 times – ( +4 / -1 ) – version 2.0
Guys,

Managing different Bootstrap form layouts with yii2-field-range extension.

Created 3 years ago by Kartik VHow-tos0 comments – viewed 19,360 times – ( +37 / -1 ) – version 2.0
This wiki will explain how you can use the Field range extension with multiple Bootstrap form layouts (vertical or horizontal). You maybe aware, that the yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

PHP built-in server integration

Created 2 years ago by HeadshakerHow-tos1 comment – viewed 19,351 times – ( -1 ) – version 2.0
I was playing around with another PHP framework which I didn't really liked anyway but it had simple and nice integration for PHP built in web server so I decided to write one for Yii (since this is my primary PHP framework)

Twitter Bootstrap style Breadcrumbs

Created 4 years ago by junaidatariHow-tos0 comments – viewed 19,343 times – ( +5 / -2 ) – version 1.1
1: Create breadcrumb in your view file.