Wiki

Sorted by ratingX
Displaying 321-330 of 785 result(s).

How to get & store Last Login DateTime in database?

Created 2 years ago by Rohit SutharHow-tos2 comments – viewed 12,198 times – ( +7 ) – 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).

Yii2: Configuring different sessions for backend and frontend in Yii Advanced Application Template

Created 2 years ago by hrnairHow-tos2 comments – viewed 21,776 times – ( +7 ) – version 2.0
This is as an extension of this wiki by Kartik V which shows to make different enableAutoLogin cookies for frontend and backend.

Local time zones and locales

Created 5 years ago by Russell EnglandHow-tos9 comments – viewed 69,390 times – ( +14 / -2 ) – version 1.1
Following on from international dates, I also wanted times in the local timezone and format. This was a little more tricky but I think I've got a solution. This is only really appropriate if you have an international app.

RBAC Super Simple with Admin and User

Created 2 years ago by evercodeTutorials10 comments – viewed 53,132 times – ( +16 / -3 ) – version 2.0
One of the common requests I see in the forum is how to implement RBAC. While you can implement Yii 2's built-in RBAC, that might be too much for developers who are just starting with Yii 2 or have simpler needs. Sometimes you are looking for a fast solution and just want two flavors, user and admin. And even if you will eventually need more, you can use these methods as a starting point for developing your own features or move on to Yii 2's RBAC.

CButtonColumn: Use special variable $data for the 'id' in the 'options' of a button

Created 4 years ago by bluezedTutorials5 comments – viewed 31,244 times – ( +10 / -1 ) – version 1.1
In an application I had a CGridView with a CButtonColumn and for an Ajax-Request I needed to make sure that the IDs of the buttons would not change when the GridView was updated so in effect I wanted to link them to the $data->id. So I tried:

Ember.js with Yii REST backend,demo application

Created 4 years ago by drumaddictOthers4 comments – viewed 29,743 times – ( +10 / -1 ) – version 1.1
Ember with Yii REST backend,demo application.

Integrating Yii with Wordpress

Created 5 years ago by isekreamTips5 comments – viewed 52,747 times – ( +10 / -1 ) – version 1.1
Well I finally had some time and tinkered a bit with the notion of integrating wordpress and Yii. Now for me I wanted to use Yii as a framework to develop wordpress plugins. Using some tips from imasia Article I was able to do a simple integration of yii as a wordpress plugin. The integration was very basic and i just used yii with its default installation site. I don;t know how it will really react with CRUD application as yet but it was fairly easy to integrate after reading the article...

Activate captcha after unsuccessful login attempts

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos22 comments – viewed 22,610 times – ( +13 / -2 ) – version 1.1
Like gmail, if you have tree or more unsuccessful login attemps a captcha appears

Yii Rights Management Tips

Created 2 years ago by Rajith RTips0 comments – viewed 5,821 times – ( +6 ) – version 1.1
yii rights some tips..

Insert a multirow header in CGridView

Created 3 years ago by PeppeHow-tos2 comments – viewed 15,796 times – ( +6 ) – version 1.1
The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way you can write columns grouping headers, and obtain a nicer view.