Wiki

Sorted by date (updated)X
Displaying 31-40 of 766 result(s).

Yii for beginners 2

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

Using your own forked version of extensions with composer

Updated 7 months ago by Kartik VTutorials2 comments – viewed 4,969 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 packagist.org. You are recommended to follow the approach below:

View a related field in CGridView

Updated 7 months ago by rafaelt88Tips1 comment – viewed 8,111 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 7 months ago by moo.tensaiTips0 comments – viewed 5,542 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 8 months ago by Scott_HuangTutorials1 comment – viewed 6,333 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. http://www.yiiframework.com/extension/yii2-export2excel/

Before Query Example : Soft Delete

Updated 8 months ago by moo.tensaiHow-tos2 comments – viewed 6,251 times – ( +1 ) – version 2.0
This is how i do before query on Yii 2.0

How to upload a file using a model

Updated 8 months ago by samdarkTutorials6 comments – viewed 394,276 times – ( +86 / -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 9 months ago by skwordenHow-tos3 comments – viewed 7,054 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.

Date Picker by examples

Updated 9 months ago by Alfa AdhityaHow-tos6 comments – viewed 76,575 times – ( +10 / -2 ) – version 1.1
CJuiDatePicker displays a datepicker. CJuiDatePicker encapsulates the JUI datepicker plugin.

[Guide] How to actually separate Frontend (User) and Backend (Admin) on Yii2 Advanced

Updated 9 months ago by samdarkHow-tos1 comment – viewed 22,637 times – ( +14 / -1 ) – version 2.0
I am writing this guide because I struggled to find a resource that included ALL of the necessary steps to completely separate the frontend from the backend. After reading guides like Configuring different sessions for backend and frontend in yii-advanced-app and yii2 configuring different sessions for backend and frontend in yii advanced application template, there are still steps missing. It is funny how the 2nd one says it is an extension of the first one's article. So I guess, my wiki guide here is yet a 3rd and more complete extension of both of them. I also found a few StackOverflow questions and blog posts regarding this topic. None of them fully worked, and must be missing some magic sauce!