Wiki

Sorted by commentsX
Displaying 291-300 of 777 result(s).

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

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

Creating a Dependent Dropdown From Scratch in Yii2

Created 2 years ago by ThePr0f3550rHow-tos4 comments – viewed 53,915 times – ( +7 ) – version 2.0
I have read http://www.yiiframework.com/wiki/24/creating-a-dependent-dropdown/ (Dependen Dropdown Yii1), but I cant implementation in Yii2 because Yii2 not built-in AJAX functionality hem.. I am search about it and get this statement

Using updateAll and deleteAll with scopes

Created 2 years ago by le_topHow-tos4 comments – viewed 23,368 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 3 years ago by TrejderHow-tos4 comments – viewed 13,202 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 2 years ago by Ankit ModiTutorials4 comments – viewed 26,891 times – ( +3 / -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 3 years ago by TrejderHow-tos4 comments – viewed 35,633 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 3 years ago by Gerhard LiebenbergHow-tos4 comments – viewed 20,268 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().

Write & use a custom Component in Yii2.0

Created 2 years ago by sirin kHow-tos4 comments – viewed 47,198 times – ( +17 ) – 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)

How to implement form events

Created 2 years ago by Antonio RamirezHow-tos4 comments – viewed 13,434 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

Send asset folder path to a javascript of a widget

Created 5 years ago by sensorarioTips4 comments – viewed 21,914 times – ( +4 ) – version 1.1
When you develop a widget, you could need one image that is in the assets folder, you can use it simply within a css. You can load a css or javascript script doing this: