Wiki

Sorted by ratingX
Displaying 31-40 of 753 result(s).

Configuring different sessions for backend and frontend in Yii advanced app

Created about a year ago by Kartik VHow-tos1 comment – viewed 11,123 times – ( +44 ) – 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.

Nested inline active fields inside Bootstrap horizontal forms

Created about a year ago by Kartik VHow-tos2 comments – viewed 17,218 times – ( +41 ) – 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.

Understanding the view rendering flow

Created 3 years ago by dckurushinFAQs16 comments – viewed 162,398 times – ( +94 / -3 ) – version 1.1
There is a lot of confusion surrounding what is happening behind the scenes when you render a view.

Javascript and AJAX with Yii

Created 2 years ago by Fran├žois GannazHow-tos3 comments – viewed 114,995 times – ( +40 ) – version 1.1
This page intends to provide an exhaustive guide of how to use Javascript (JS) in Yii. It does not explain how to learn coding in JS, but how to deal with it "the Yii way".
tags: javascript, AJAX

Single table inheritance

Created 4 years ago by samdarkHow-tos8 comments – viewed 27,903 times – ( +40 ) – version 1.1
Relational databases do not support inheritance so if we need to represent it, we have to somehow store meta info while keeping performance by minimizing JOINs. One way to solve this problem is using single table inheritance. All fields for the whole class tree are stored in a single table. Class name is stored in the type field of the same table.

Relational data fields display and edit with the yii2-detail-view extension

Created about a year ago by Kartik VTutorials1 comment – viewed 14,930 times – ( +39 ) – version 2.0
If you have read this wiki you would be aware of the yii2-detail-view extension and how it offers you an easy way to EDIT and VIEW your model data, toggle these modes, and other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

Multi level dropdown menu in Bootstrap

Created about a year ago by sefburhanTutorials1 comment – viewed 14,650 times – ( +38 ) – version 1.1
To get multi level dropdown menu of using boostrap extension (http://www.yiiframework.com/extension/bootstrap/) widget TbNavbar just follow steps

Uploading multiple images with CMultiFileUpload

Created 4 years ago by rsinghHow-tos16 comments – viewed 88,264 times – ( +38 ) – version 1.1
"The documentation for CMultiFileUpload isn't clear!"

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

Created about a year ago by Kartik VHow-tos10 comments – viewed 34,215 times – ( +37 ) – 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.

Editing, Deleting, and Viewing model data with the yii2-detail-view extension

Created about a year ago by Kartik VTutorials1 comment – viewed 18,235 times – ( +37 ) – version 2.0
The yii2-detail-view extension offers you an easy way to EDIT and VIEW your model data, toggle these modes, and adds other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.