Wiki

Sorted by date (updated)X
Displaying 71-80 of 724 result(s).

How to use GridView with AJAX

Updated 4 months ago by YiiJekaHow-tos2 comments – viewed 10,834 times – ( +10 ) – version 2.0
With the adoption of PJax on Yii2 things  have change quite a bit with GridView when it comes to work with them in AJAX mode. It will probably be confusing at the beginning, but then you will soon realize how powerful the new approach is.
tags: yii2, pjax, widget

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Updated 4 months ago by Kartik VTips5 comments – viewed 11,409 times – ( +31 / -4 ) – version 2.0
With Bootstrap 3 and its inbuilt support in Yii Framework 2.0, you would see quite some new ways of creating HTML markup and styling your site. However, with version 3 of Bootstrap, tooltips and popover are not activated by default on your elements. Assuming you have activated the Bootstrap 3 tooltip plugin - how do you easily enable display of tooltips/popovers across your site?

embedded javascript block in your view with IDE checking or intellisense

Updated 4 months ago by yiqing95Tips0 comments – viewed 2,135 times – ( +3 ) – version 2.0
this is my way for embed js code block in view file:

Check users online, user last activity, user last ip

Updated 4 months ago by frazelliHow-tos5 comments – viewed 3,417 times – ( +2 ) – version 1.1
DbHttpSession

A simple way to get Yii client-side form validation run when submitting by ajax

Updated 4 months ago by nlacTutorials5 comments – viewed 31,514 times – ( +6 / -2 ) – version 1.1
A time ago i've met the issue that Yii doesn't run any client-side form validation when submitting the form by CHtml::ajaxSubmitButton. The small javascript below helps to fix it.

Add Beautiful Radio/Checkbox Buttons To Grid

Updated 4 months ago by Rohit SutharHow-tos1 comment – viewed 16,280 times – ( +10 / -2 ) – version 1.1
This is a tutorial on how to create slick looking status buttons to update a model's status via a grid. Note** This tutorial uses Yii Bootstrap for styling.

How to get & store Last Login DateTime in database?

Updated 4 months ago by Rohit SutharHow-tos2 comments – viewed 3,593 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).

Translation from .txt file

Updated 4 months ago by Yatin MistryTutorials6 comments – viewed 2,205 times – ( +1 / -4 ) – version 1.1
Translation from .txt file Note:
tags: translation

[Updated] How to create & call custom global function in whole application?

Updated 4 months ago by Rohit SutharTutorials8 comments – viewed 4,025 times – ( +5 / -2 ) – version 1.1
In this wiki I will show how to create own custom global function. It may be save the space and reduce the time.

Insert a multirow header in CGridView

Updated 4 months ago by PeppeHow-tos2 comments – viewed 10,191 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.