Wiki

Articles tagged with "yii2", sorted by date (updated)X
Displaying 51-60 of 78 result(s).

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

Updated 3 years ago by Kartik VTutorials1 comment – viewed 52,367 times – ( +37 / -2 ) – 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.

Key web server settings after installing a fresh Yii 2 basic or advanced app

Updated 3 years ago by Kartik VTips2 comments – viewed 16,524 times – ( +48 / -1 ) – version 2.0
So, you have installed a brand new Yii 2 app (basic) or (advanced). Here are a few tips for Apache web server users to get things running more secure and better with your yii2 app.

Model validation for field ranges using yii2-field-range extension

Updated 3 years ago by Kartik VTips0 comments – viewed 14,898 times – ( +39 / -1 ) – version 2.0
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.

Yii2 and Pdf files with Mpdf

Updated 3 years ago by CTalaHow-tos2 comments – viewed 17,329 times – ( +7 / -1 ) – version 2.0
I am still new to composer and packagist, so I want to share how I am creating the pdf files because for me was not as simple as it should be.

Displaying uploaded file from DB for update with FileInput widget

Updated 3 years ago by Kartik VHow-tos3 comments – viewed 37,633 times – ( +39 / -6 ) – version 2.0
This is for folks who are using \kartik\widgets\FileInput to upload files from your client. How do you display an image for update after you have uploaded it to the server using the widget?

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

Updated 3 years ago by Kartik VHow-tos0 comments – viewed 10,830 times – ( +35 / -1 ) – version 2.0
The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs.

Filter & Sort by Summary Data in GridView Yii 2.0

Updated 3 years ago by Kartik VTutorials7 comments – viewed 46,152 times – ( +40 / -5 ) – version 2.0
This wiki explains how to add summary data from related models into your Yii Framework 2.0 gridview with filtering and sorting by the summary columns.

Filter & Sort by calculated/related fields in GridView Yii 2.0

Updated 3 years ago by Kartik VTutorials25 comments – viewed 163,079 times – ( +57 / -5 ) – version 2.0
This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

Managing your nested dropdown dependency with DepDrop widget

Updated 3 years ago by Kartik VTutorials6 comments – viewed 26,767 times – ( +37 / -6 ) – version 2.0
If you are coming over to Yii 2 from Yii 1.x, you may have already read this useful wiki for creating dependent dropdowns. You can use a similar approach in Yii 2 to do the same. But if you are looking at a prebuilt solution that helps you manage it easier, read along.

How to store array/widget configuration to the database with config validation rules

Updated 3 years ago by Kartik VTutorials0 comments – viewed 8,119 times – ( +39 / -5 ) – version 2.0
You may have scenarios, where you want to store a specific array configuration to the database. A classic example could be saving Yii widget configuration to the database and then retrieving it at runtime, with dynamic parameters set. This wiki discusses one of the approaches to do this. Let's consider you have something like the NavBar configuration below to store in the db: