Wiki

Articles in category "tutorials"X
Displaying 31-40 of 234 result(s).

Using your own forked version of extensions with composer

Created 5 months ago by Kartik VTutorials1 comment – viewed 1,547 times – ( +31 / -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 5 months ago by Kartik VTutorials0 comments – viewed 2,090 times – ( +29 / -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 5 months ago by Kartik VTutorials0 comments – viewed 3,477 times – ( +29 / -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 5 months ago by Kartik VTutorials0 comments – viewed 1,658 times – ( +28 / -5 ) – version 2.0
Have you faced some of these problems when using composer with your Yii 2 installation?

Installare Yii 2 RC usando XAMPP su Windows in versione portabile

Created 6 months ago by realteboTutorials0 comments – viewed 2,466 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.

Automatically get the SVN Revision Number of your Project

Created 6 months ago by jcagentzeroTutorials1 comment – viewed 1,982 times – ( +3 ) – version all
When you are handling so many projects and those projects are saved in different repository locations, you may find it very difficult to keep track all the versions and revisions manually and it will be much harder if you are developing in multiple repository branches.

Making a CGridView to keep the selection between page changes

Created 7 months ago by bluyellTutorials0 comments – viewed 2,914 times – ( +1 / -1 ) – version 1.1
You may find this usefull when you discover your CGridView lost the selection after an update or after a page change, nicely i have build a new extension to cover this problem in a very easy way.

CSqlDataProvider in CGridView

Created 7 months ago by KonApazTutorials8 comments – viewed 7,646 times – ( +6 ) – version 1.1
In this wiki I will show how could use a CSqlDataProvider in CGridView with specific features

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

Created 8 months ago by Kartik VTutorials19 comments – viewed 16,369 times – ( +34 / -4 ) – version 2.0
This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

Saving CGridView filter

Created 8 months ago by sefburhanTutorials5 comments – viewed 4,298 times – ( +27 ) – version 1.1
In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps