Wiki

Sorted by date (updated)X
Displaying 11-20 of 696 result(s).

How to translate and do the translations the easy way

Updated 15 days ago by Roman SolomatinHow-tos3 comments – viewed 45,307 times – ( +26 / -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 16 days ago by nlacTutorials5 comments – viewed 27,638 times – ( +5 / -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 17 days ago by sirin kTutorials3 comments – viewed 2,617 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 18 days ago by Antonio RamirezHow-tos4 comments – viewed 1,964 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 19 days ago by Rohit SutharHow-tos1 comment – viewed 14,013 times – ( +9 / -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 20 days ago by Rohit SutharHow-tos2 comments – viewed 2,393 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 20 days ago by Yatin MistryTutorials6 comments – viewed 1,578 times – ( +1 / -4 ) – version 1.1
Translation from .txt file Note:
tags: translation

[Updated] How to create & call custom global function in whole application?

Updated 22 days ago by Rohit SutharTutorials8 comments – viewed 2,083 times – ( +4 / -2 ) – version 1.1
In this wiki I will show how to create own custom global function. It may be save the space and reduce the time.

Insert a multirow header in CGridView

Updated 27 days ago by PeppeHow-tos2 comments – viewed 8,945 times – ( +5 ) – 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.

Write & use a custom Component in Yii2.0

Updated 28 days ago by sirin kHow-tos0 comments – viewed 1,704 times – ( +4 ) – version 2.0
This is a simple example in Yii2.0 to understand how you can write a custom component and use it inside your app.(basic template)