Wiki

Sorted by date (updated)X
Displaying 51-60 of 777 result(s).

Simple revealing and hiding the password in the password field

Updated about a year ago by BizleyHow-tos2 comments – viewed 4,930 times – ( +2 ) – version 2.0
There are numerous usability problems:

Configuring different sessions for backend and frontend in Yii advanced app

Updated about a year ago by Kartik VHow-tos2 comments – viewed 22,180 times – ( +46 ) – version 2.0
After you have setup your Yii2 advanced application, you now have setup your user authentication for both frontend and backend. However, if you have first logged into frontend, and try to access backend from the same client machine, you see no login screen, but find yourself automatically logged in.

Behaviour for Time Zone and Format conversion for Date, Time, timestamp, and datetime

Updated about a year ago by SmitheshHow-tos1 comment – viewed 7,529 times – ( +3 ) – version 1.1
This Behaviour helps to view time/date/timestamp/datetime from db to local Date / Time / Date Time format and in local Timezone. And save into db in with db timezone and db format. You only need to include this behaviour in models where need this facility.

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

Updated about a year ago by weaverkHow-tos0 comments – viewed 16,335 times – ( +4 ) – 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 about a year ago by HeadshakerHow-tos1 comment – viewed 10,258 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 about a year ago by rackyczTutorials2 comments – viewed 51,761 times – ( +32 ) – version 1.1
Hi :-) Is that you again? Welcome !! :-)

Using your own forked version of extensions with composer

Updated about a year ago by Kartik VTutorials3 comments – viewed 7,857 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 about a year ago by rafaelt88Tips1 comment – viewed 9,659 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 about a year ago by moo.tensaiTips0 comments – viewed 6,602 times – ( +2 ) – 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 about a year ago by Scott_HuangTutorials1 comment – viewed 8,335 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/