Wiki

Sorted by date (updated)X
Displaying 31-40 of 707 result(s).

embedded javascript block in your view with IDE checking or intellisense

Updated about a month ago by yiqing95Tips0 comments – viewed 1,709 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,504 times – ( +1 ) – version 1.1
DbHttpSession

By Example: CHtml

Updated about a month ago by Rohit SutharTutorials15 comments – viewed 546,347 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,376 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,958 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 5,300 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

How to implement form events

Updated about a month ago by Antonio RamirezHow-tos4 comments – viewed 2,426 times – ( +5 ) – version 2.0
You have that, when a product is on development they can change its API anytime. This change is quite important though, its related on how to set the events of your form, for example, the useful beforeSubmit.
tags: yii2, forms, how to

Add Beautiful Radio/Checkbox Buttons To Grid

Updated about a month ago by Rohit SutharHow-tos1 comment – viewed 14,740 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 about a month ago by Rohit SutharHow-tos2 comments – viewed 2,725 times – ( +6 ) – 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 about a month ago by Yatin MistryTutorials6 comments – viewed 1,811 times – ( +1 / -4 ) – version 1.1
Translation from .txt file Note:
tags: translation