Wiki

Sorted by commentsX
Displaying 491-500 of 784 result(s).

How to get & store Last Login DateTime in database?

Created 2 years ago by Rohit SutharHow-tos2 comments – viewed 13,250 times – ( +7 / -1 ) – version 1.1
In this wiki I will show how could be store last login date & time in database. First we need a field LastLoginTime (Type must be datetime). this field store a user login detalis (like - Date & Time).

Avoiding duplicate script download when using CActiveForm on Ajax calls

Created 5 years ago by Antonio RamirezTutorials2 comments – viewed 19,963 times – ( +12 / -2 ) – version 1.1
Sometimes the active form we wish to use to edit/add a new element on our database is too small and we believe that is much better to use an AJAX'ed dialog/slide form rather than reloading the page to just display one or two fields.

How To : Create Forgot Password in Yii (Sending Email to Reset Password)

Created 2 years ago by ruderbytesHow-tos2 comments – viewed 28,694 times – ( +1 / -1 ) – version 1.1
Assalamualaikum wr.wb Hello yii people i'm Muhammad Fahmi Azain this is tutorial about forgot password in yii framework, and i'm sorry if it does not comply with code standards yii. okay let's begin

Google style sign out of all other sessions

Created 2 years ago by Rohit SutharHow-tos2 comments – viewed 8,222 times – ( +4 / -1 ) – version 1.1
In this wiki I will show how could logout from all other sessions or all other places.

Force a User to Change Their Password (ChangePasswordFilter)

Created 5 years ago by waterloomattTutorials2 comments – viewed 18,856 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.

Yii registry, how to use it, does it exist at all?

Created 5 years ago by dckurushinHow-tos2 comments – viewed 24,781 times – ( +7 / -2 ) – version 1.1
From time to time people ask about registry...

CGridView. Add custom class to table rows preserving original „odd“ and „even“

Created 4 years ago by Maug LeeHow-tos2 comments – viewed 38,500 times – ( +8 / -1 ) – version 1.1
Lets say we have such a CGridView widget showing a list of users for administrator. Users have status „active“ or „disabled“. Grid widget puts class „odd“ or „even“ to rows and we want to preserve this. So we want to add a class „disabled“ to rows with disabled users.

How to use imagine ( crop, thumb, effects for images ) on Yii2

Created 2 years ago by Anas AbuDayahTutorials2 comments – viewed 47,395 times – ( +8 / -1 ) – version 2.0
Imagine adds most common image functions and also acts as a wrapper to Imagine image manipulation library.

Integrating ZF2 into Yii - use case demonstrated

Created 4 years ago by BoazHow-tos2 comments – viewed 8,178 times – ( +10 / -1 ) – version 2.0
I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I decided to record my findings and that's how this article was born. The below recipe is what worked for me, accompanied by relevant comments. References: This article is partially based on this guide page. Be sure also to consult Zend Framework 2 documentation.

Reliable Alternative For Yii::app()->request->isAjaxRequest AND Adding Data To Ajax Form With JS

Created 5 years ago by ibo_sHow-tos2 comments – viewed 49,094 times – ( +15 / -2 ) – version 1.1
In this How-To I'll show you: