Wiki

Articles in category "tutorials"X
Displaying 21-30 of 229 result(s).

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

Created 3 months ago by Kartik VTutorials0 comments – viewed 2,310 times – ( +25 ) – 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.

Profiling user requests

Created 3 months ago by M0kaTutorials3 comments – viewed 1,094 times – ( +1 ) – version 1.1
How to profile user requests so you can determine which actions need an enhancements and optimizations? This wiki going to show you a step by step how to do it.

shortcut/usefull access roles methods RBAC

Created 3 months ago by KonApazTutorials5 comments – viewed 1,377 times – ( +1 ) – version 1.1
These are functions that I used very often, may helps you!

Filter & Sort by Summary Data in GridView Yii 2.0

Created 3 months ago by Kartik VTutorials5 comments – viewed 3,166 times – ( +24 / -4 ) – 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.

Managing your nested dropdown dependency with DepDrop widget

Created 3 months ago by Kartik VTutorials2 comments – viewed 2,583 times – ( +25 / -5 ) – 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.

Using your own forked version of extensions with composer

Created 3 months ago by Kartik VTutorials1 comment – viewed 1,174 times – ( +28 / -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:

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

Created 3 months ago by Kartik VTutorials0 comments – viewed 1,577 times – ( +26 / -4 ) – 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:

Handling tabular data loading and validation in Yii 2

Created 3 months ago by Kartik VTutorials0 comments – viewed 2,079 times – ( +26 / -4 ) – version 2.0
How do you read and handle tabular data submission via form in Yii framework 2.0? Sometimes we want to collect user input in a batch mode. That is, the user can enter the information for multiple model instances and submit them all at once. We call this tabular input because the input fields are often presented in an HTML table.

What to do when composer fails to update your vendor packages?

Created 3 months ago by Kartik VTutorials0 comments – viewed 985 times – ( +25 / -5 ) – version 2.0
Have you faced some of these problems when using composer with your Yii 2 installation?

Installare Yii 2 usando XAMPP su Windows in versione portabile

Created 4 months ago by realteboTutorials0 comments – viewed 1,603 times – ( +1 ) – version 2.0
Una delle soluzioni che preferisco per studiare un framework PHP รจ avere a disposizione un webserver portabile, ovvero che non richiede una vera e propria installazione. Questo mi permette spesso di lavorare direttamente su una chiavetta USB, potendo passare da un computer ad un altro di casa, o al lavoro, o dai clienti per le demo, senza alcun problema, avendo sempre con me l'ambiente server completo: server web, server MySQL, interprete php.