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

YII2: Create console commands inside a module or extension

Updated 2 months ago by MetaCrawlerTutorials0 comments – viewed 4,010 times – ( +2 ) – version 2.0
Here is a small guide how to get console commands running inside modules & extensions. For this guide I used a fresh yii2 basic application template.
tags: yii2, tutorial, config

PHP built-in server integration

Updated 2 months ago by HeadshakerHow-tos0 comments – viewed 4,656 times – version 2.0
I was playing around with another PHP framework which I didn't really liked anyway but it had simple and nice integration for PHP built in web server so I decided to write one for Yii (since this is my primary PHP framework)

Yii for beginners 2

Updated 2 months ago by rackyczTutorials2 comments – viewed 46,190 times – ( +30 ) – version 1.1
Hi :-) Is that you again? Welcome !! :-)

Using your own forked version of extensions with composer

Updated 2 months ago by Kartik VTutorials2 comments – viewed 3,859 times – ( +39 / -4 ) – version 2.0
So you want to use a fork of any existing vendor extension with your Yii 2 install and use the fork, instead of original source. This does not need you to push any update or register your package on You are recommended to follow the approach below:

View a related field in CGridView

Updated 3 months ago by rafaelt88Tips1 comment – viewed 6,890 times – ( +6 ) – version 1.1
Generally we need to show one or more fields from a model that is related to another model used in CGridView. For our case we will use two related models, which explain how to use model "A" fields in a CGridView that used model "B".

Load & Save With Relation

Updated 3 months ago by moo.tensaiTips0 comments – viewed 4,693 times – ( +1 ) – version 2.0
Use this extension : yii2-relation-trait

Export query content to excel through any of your controllers, also can set cssClass for header/odd/even rows, auto download

Updated 3 months ago by Scott_HuangTutorials1 comment – viewed 4,625 times – ( +2 ) – version 2.0
I have generate one extension base below wiki. You can easily download and use it directly instead of digest below article.

Before Query Example : Soft Delete

Updated 4 months ago by moo.tensaiHow-tos2 comments – viewed 4,709 times – version 2.0
This is how i do before query on Yii 2.0

How to upload a file using a model

Updated 4 months ago by samdarkTutorials6 comments – viewed 376,880 times – ( +85 / -6 ) – version 1.1
First declare an attribute to store the file name in the model class (either a form model or an active record model). Also declare a file validation rule for this attribute to ensure a file is uploaded with specific extension name.
tags: File upload

Load data from internal/external source to fill form fields

Updated 4 months ago by skwordenHow-tos3 comments – viewed 5,146 times – ( +1 ) – version 2.0
This wiki is to show you how to use jQuery get and JSON to get data from a dropdown/any form field and fill form fields with the values instantaneously. First, I'll give example use cases of what I'm going to teach you so you can quickly see if this is for you.