Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 31-40 of 325 result(s).

Save and Display Date/Time Fields in different formats in Yii2

Updated 3 months ago by Kartik VHow-tos10 comments – viewed 12,013 times – ( +30 ) – version 2.0
You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.

Yii 2.0: Write & use a custom Component in Yii2.0 (Advanced Template)

Updated 3 months ago by Deepak PradhanHow-tos0 comments – viewed 3,096 times – version 2.0
This is an extension to Yii 2.0: Write & use a custom Component in Yii2.0 for Advanced Template

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

Updated 3 months ago by BoazHow-tos1 comment – viewed 16,695 times – ( +5 ) – 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 months ago by edoardo849How-tos1 comment – viewed 2,717 times – 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 months ago by Rohit SutharHow-tos55 comments – viewed 239,419 times – ( +110 / -1 ) – version 1.1
This article will explain how to create a REST API with the Yii framework.

Behaviour for Time Zone and Format conversion for Date, Time, timestamp, and datetime

Updated 4 months ago by SmitheshHow-tos0 comments – viewed 3,141 times – ( +2 ) – version 1.1
This Behaviour helps to view time/date/timestamp/datetime from db to local Date / Time / Date Time format and in local Timezone. And save into db in with db timezone and db format. You only need to include this behaviour in models where need this facility.

How to use GridView with AJAX

Updated 4 months ago by YiiJekaHow-tos2 comments – viewed 10,907 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

Check users online, user last activity, user last ip

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

Add Beautiful Radio/Checkbox Buttons To Grid

Updated 4 months ago by Rohit SutharHow-tos1 comment – viewed 16,299 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,601 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).