Articles in category "how-tos", sorted by date (updated)X
Displaying 91-100 of 355 result(s).

how to make a dynamic progress bar to show the percentage or status

Updated 3 years ago by BoazHow-tos1 comment – viewed 31,579 times – ( +5 / -1 ) – version 1.1
Yii have a CJuiProgressBar, but it is static. If we want a dynamic progress bar to show the percentage or status, we have to do more things. I make it successfully and am glad to share it with you.

MongoDB's RBAC support class extending BaseManager

Updated 3 years ago by edoardo849How-tos1 comment – viewed 7,601 times – ( -1 ) – version 2.0
Here's a possible implementation for MongoDb of the RBAC standard. Create a class "MongoDbManager" in common\components and modify your params.php file like this:
tags: mongodb, rbac, yii2

How-To: Create a REST API

Updated 3 years ago by Rohit SutharHow-tos57 comments – viewed 367,437 times – ( +113 / -2 ) – version 1.1
This article will explain how to create a REST API with the Yii framework.

How to use GridView with AJAX

Updated 3 years ago by YiiJekaHow-tos6 comments – viewed 59,955 times – ( +14 / -1 ) – 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

Check users online, user last activity, user last ip

Updated 3 years ago by frazelliHow-tos5 comments – viewed 11,936 times – ( +5 / -1 ) – version 1.1

Add Beautiful Radio/Checkbox Buttons To Grid

Updated 3 years ago by Rohit SutharHow-tos1 comment – viewed 26,522 times – ( +10 / -3 ) – 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 3 years ago by Rohit SutharHow-tos2 comments – viewed 14,877 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).

Insert a multirow header in CGridView

Updated 3 years ago by PeppeHow-tos2 comments – viewed 17,887 times – ( +6 / -1 ) – 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.

Enhance security of cookie-based login

Updated 3 years ago by darkheirHow-tos0 comments – viewed 9,478 times – ( +2 / -1 ) – version 1.1
Enhance security of cookie-based login

multiple CActiveDataProviders in one CGridView

Updated 3 years ago by NashiHow-tos7 comments – viewed 23,569 times – ( +8 / -2 ) – version 1.1
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?