Wiki

Sorted by ratingX
Displaying 311-320 of 751 result(s).

How to get & store Last Login DateTime in database?

Created 10 months ago by Rohit SutharHow-tos2 comments – viewed 5,309 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).

Local time zones and locales

Created 4 years ago by Russell EnglandHow-tos9 comments – viewed 57,759 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.

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

Created 2 years ago by bluezedTutorials5 comments – viewed 24,102 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 2 years ago by drumaddictOthers4 comments – viewed 25,963 times – ( +10 / -1 ) – version 1.1
Ember with Yii REST backend,demo application.

Integrating Yii with Wordpress

Created 4 years ago by isekreamTips5 comments – viewed 40,696 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...

Yii Rights Management Tips

Created 8 months ago by Rajith RTips0 comments – viewed 3,400 times – ( +6 ) – version 1.1
yii rights some tips..

Pjax on ActiveForm and GridView - Yii2

Created 7 months ago by SreenadhHow-tos3 comments – viewed 20,076 times – ( +6 ) – version 2.0
Here is a example on how to use Pjax with GridView (yii\grid\GridView) and ActiveForm (yii\widgets\ActiveForm) widgets in Yii2.

Running applications with Docker

Created 5 months ago by schmunkTutorials1 comment – viewed 5,942 times – ( +6 ) – version 2.0
When building PHP web applications you usually have to take care about defining and providing a consistent development and production environment for your team. This includes your application packages, PHP-extensions, database servers and often further components such as a mail server or workers.

Insert a multirow header in CGridView

Created about a year ago by PeppeHow-tos2 comments – viewed 11,572 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.

yii2-app-advanced on single domain (Apache, Nginx)

Created 3 months ago by MadAndHow-tos3 comments – viewed 6,136 times – ( +6 ) – version 2.0
If you develop rather complex applications with Yii2, you might already be familiar with yii2-app-advanced application template. Well, the template is awesome and provides high flexibility regarding code/configuration sharing among parts of an application.