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


Created 2 years ago by Gerhard LiebenbergHow-tos4 comments – viewed 17,378 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 about a year ago by sirin kHow-tos4 comments – viewed 25,471 times – ( +15 ) – 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 about a year ago by Antonio RamirezHow-tos4 comments – viewed 7,273 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 4 years ago by sensorarioTips4 comments – viewed 19,992 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:

Using CListView to display items next to each other (in columns)

Created 2 years ago by thyseusTips4 comments – viewed 11,280 times – ( +11 )
When using CListView to display multiple views next to each other, we can use the $index variable inside the viewFile to achieve this. As far as i know there is no extension or out-of-the-box functionality for this, so we need to apply a little hack:

Shrink Yii, help your IDE and speed up copying

Created 4 years ago by dckurushinTips4 comments – viewed 9,475 times – ( +10 / -9 ) – version 1.1
In this little tip, I will help you to cut Yii size for about half

how to use github (un)official extension repo in your Yii project

Created 4 years ago by RusAlexTips4 comments – viewed 7,903 times – ( +4 ) – version 1.1
Using a git submodule command in your yii project

Create Form With DynamicModel

Created about a year ago by Misbahul D MunirTips4 comments – viewed 5,375 times – version 2.0
In yii2 we can create form without create FormModel. Here we go
tags: form, yii2, model

Add model validator in Controller

Created about a year ago by Kostas Apazidis (KonApaz)Tips4 comments – viewed 8,730 times – ( +1 / -1 ) – version 1.1
There are cases that model validators should be depended by controller/action and you couldn't manipulate on the model class or using scenarios in easy way

How to setup yiic on WAMP (XP/Vista)

Created 6 years ago by krillzipTutorials3 comments – viewed 74,247 times – ( +3 ) – version 1.1
This page assumes that you have installed Wampserver on your MS Windows computer.