Wiki

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

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

Updated 3 months ago by BoazHow-tos1 comment – viewed 16,771 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 4 months ago by edoardo849How-tos1 comment – viewed 2,755 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 4 months ago by Rohit SutharHow-tos55 comments – viewed 240,304 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,180 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 11,206 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,697 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,155 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,478 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,698 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,356 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.