We are going to deploy the new yiiframework.com website on March 23, 2018 from 8:00 to 12:00 UTC.
Website and Yii documentation will not be available in this time frame. Check the news for more details.


Sorted by date (updated)X
Displaying 81-90 of 786 result(s).

Create a custom menu using CMenu data-items (flat or tree structure)

Updated 2 years ago by weaverkHow-tos0 comments – viewed 18,933 times – ( +4 / -1 ) – version 1.1
There are cases that you want more control to your menu Suppose you want a specific menu with complex css, layout, images. also you want to add extra content,html,css,javascript etc it run time foreach submenu item by conditions.

PHP built-in server integration

Updated 2 years ago by HeadshakerHow-tos1 comment – viewed 21,443 times – ( -1 ) – 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 years ago by rackyczTutorials2 comments – viewed 57,174 times – ( +32 / -1 ) – version 1.1
Hi :-) Is that you again? Welcome !! :-)

Using your own forked version of extensions with composer

Updated 2 years ago by Kartik VTutorials3 comments – viewed 12,700 times – ( +39 / -5 ) – 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 packagist.org. You are recommended to follow the approach below:

View a related field in CGridView

Updated 2 years ago by rafaelt88Tips1 comment – viewed 12,376 times – ( +6 / -1 ) – 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 2 years ago by moo.tensaiTips0 comments – viewed 9,055 times – ( +2 / -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 2 years ago by Scott_HuangTutorials1 comment – viewed 11,774 times – ( +2 / -1 ) – version 2.0
I have generate one extension base below wiki. You can easily download and use it directly instead of digest below article. http://www.yiiframework.com/extension/yii2-export2excel/

Before Query Example : Soft Delete

Updated 2 years ago by moo.tensaiHow-tos2 comments – viewed 10,834 times – ( +1 / -1 ) – version 2.0
This is how i do before query on Yii 2.0

How to upload a file using a model

Updated 2 years ago by samdarkTutorials7 comments – viewed 455,863 times – ( +86 / -7 ) – 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 2 years ago by skwordenHow-tos4 comments – viewed 15,734 times – ( +1 / -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.