Wiki

Sorted by commentsX
Displaying 281-290 of 750 result(s).

Using International Dates

Created 4 years ago by Russell EnglandHow-tos4 comments – viewed 31,937 times – ( +18 ) – version 1.1
I needed British (dd/mm/yyyy) formatted dates throughout my application but found it very difficult to find examples of how to do this - until I found this excellent forum post http://www.yiiframework.com/forum/index.php?/topic/3649-dealing-with-i18n-date-formats/

CRUD operation in Yii framework

Created 11 months ago by Mohammad FareedTutorials4 comments – viewed 6,510 times – ( +1 / -6 ) – version all
Simple Yii Script for performing CRUD operations:

Sub-domains with different databases in Yii!

Created 3 years ago by jwerdHow-tos4 comments – viewed 13,361 times – ( +2 ) – version 1.1
Sub-domains with different databases in Yii!

How to display data from two tables in TbGridView using DataProvider?

Created 11 months ago by Rohit SutharTutorials4 comments – viewed 6,554 times – ( +6 / -1 ) – version 1.1
In this wiki I will show how to display data from two tables in Bootstrap TbGridView using dataProvider.

Using updateAll and deleteAll with scopes

Created 10 months ago by le_topHow-tos4 comments – viewed 11,623 times – ( +5 ) – version 1.1
Using CActiveRecord->updateAll() and CActiveRecord->deleteAll() with scopes and criteria requires some tricks that are explained in this article. While findAll() , find() and some other methods use scopes automatically, updateAll() and deleteAll() do not.

Alternative folder structure for a standard Yii app

Created 2 years ago by TrejderHow-tos4 comments – viewed 10,104 times – ( +5 ) – version 1.1
I found a standard Yii app's protected folder structure nearly perfect. With a few simple moves and a little bit change to the code, I managed to bring it to the level, which I found as fully perfect. I want to share my point of view, in case someone would like to use this structure as well.

How to display Dependent drop-down value using ajax call with dynamically

Created 10 months ago by Ankit ModiTutorials4 comments – viewed 15,262 times – ( +2 / -2 ) – version all
Hi Friends, In this tutorial I write a code display dependent drop-down value using ajax call.

Client-side form validation using Twitter Bootstrap's Popovers

Created 2 years ago by TrejderHow-tos4 comments – viewed 31,605 times – ( +4 / -1 ) – version 1.1
This article explains how to easily turn standard text-line validation errors into beautifully and professionally looking Twitter Bootstrap's Popovers.

defaultScope

Created 2 years ago by Gerhard LiebenbergHow-tos4 comments – viewed 15,178 times – ( +5 / -1 ) – version 1.1
This example includes a composite condition as well as an empty condition - as if you bypass or disable defaultScope without using resetScope().

How to implement form events

Created 8 months ago by Antonio RamirezHow-tos4 comments – viewed 4,727 times – ( +6 ) – 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