Wiki

Sorted by date (updated)X
Displaying 21-30 of 704 result(s).

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

Updated 29 days ago by SmitheshHow-tos0 comments – viewed 2,048 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 29 days ago by YiiJekaHow-tos1 comment – viewed 5,991 times – ( +5 ) – 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 about a month ago by Kartik VTips5 comments – viewed 6,905 times – ( +28 / -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?

Yii for beginners 2

Updated about a month ago by rackyczTutorials2 comments – viewed 36,260 times – ( +29 ) – version 1.1
Hi :-) Is that you again? Welcome !! :-)

embedded javascript block in your view with IDE checking or intellisense

Updated about a month ago by yiqing95Tips0 comments – viewed 1,672 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 about a month ago by frazelliHow-tos3 comments – viewed 2,409 times – ( +1 ) – version 1.1
DbHttpSession

By Example: CHtml

Updated about a month ago by Rohit SutharTutorials15 comments – viewed 542,319 times – ( +106 / -1 ) – version 1.1
"By Example" cookbook pages will provide coding examples for many of the commonly used classes within Yii. We will try to provide as many usage examples as possible for keep these pages as helpful as possible.

How to translate and do the translations the easy way

Updated about a month ago by Roman SolomatinHow-tos3 comments – viewed 46,169 times – ( +27 / -2 ) – version 1.1
I wanted to keep all the I18N related translations in separate files, so that I would not need to modify the view files or the model files every time I need to update or fix the translations of application's source language.
tags: i18n

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

Updated about a month ago by nlacTutorials5 comments – viewed 28,682 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.

Building a REST API in Yii2.0

Updated about a month ago by sirin kTutorials3 comments – viewed 4,584 times – ( +2 ) – version 2.0
This is a simple wiki which is useful if you are trying to build a REST API in Yii2.0
tags: yii2.0, REST API