Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 21-30 of 301 result(s).

Configuring different sessions for backend and frontend in Yii advanced app

Created 2 months ago by Kartik VHow-tos0 comments – viewed 1,704 times – ( +26 ) – 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.

Filter / Search with CListView

Created 2 years ago by JohnPollardHow-tos7 comments – viewed 29,897 times – ( +26 ) – version 1.1
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

Authenticating against phpass hashes with Yii

Created 2 years ago by Da:SourcererHow-tos18 comments – viewed 22,270 times – ( +26 ) – version 1.1
Note: This guide is outdated as of Yii v1.1.14 which introduced the CPasswordHelper class. Please use that instead.

Using the yii2-datecontrol extension along with yii2-detail-view widget

Created 2 months ago by Kartik VHow-tos0 comments – viewed 1,120 times – ( +25 ) – version 2.0
The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs.

Nested inline active fields inside Bootstrap horizontal forms

Created about a month ago by Kartik VHow-tos1 comment – viewed 1,625 times – ( +25 ) – version 2.0
Are you using the Bootstrap 3 form styles with Yii 2 Active Forms? Have you faced problems in displaying complex layouts which needs you to display multiple inline form fields in a single row, within bootstrap horizontal forms. Then read on.

URL management for Websites with secure and nonsecure pages

Created about a year ago by qiangHow-tos10 comments – viewed 18,106 times – ( +24 ) – version 1.1
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
tags: URL

Keeping a running total in a CGridView

Created 3 years ago by Steve FriedlHow-tos4 comments – viewed 21,744 times – ( +24 ) – version 1.1
This tip created in conjunction with IRC #yii channel users emilsedgh and tydeas - thanks!
tags: CGridView

Save and Display Date/Time Fields in different formats in Yii2

Created 2 months ago by Kartik VHow-tos4 comments – viewed 2,433 times – ( +24 ) – version 2.0
You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.

Managing different Bootstrap form layouts with yii2-field-range extension.

Created 2 months ago by Kartik VHow-tos0 comments – viewed 1,802 times – ( +24 ) – version 2.0
This wiki will explain how you can use the Field range extension with multiple Bootstrap form layouts (vertical or horizontal). You maybe aware, that the yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 3 years ago by xrxHow-tos16 comments – viewed 31,745 times – ( +23 ) – version 1.1
Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.