Articles in category "tutorials"X
Displaying 41-50 of 243 result(s).

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

Created about a year ago by Kartik VTutorials0 comments – viewed 4,429 times – ( +38 / -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 about a year ago by Kartik VTutorials3 comments – viewed 19,151 times – ( +41 / -5 ) – 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 about a year ago by Kartik VTutorials0 comments – viewed 7,973 times – ( +37 / -5 ) – version 2.0
Have you faced some of these problems when using composer with your Yii 2 installation?

Installare Yii 2.0.* usando XAMPP su Windows in versione portabile

Created about a year ago by realteboTutorials0 comments – viewed 7,949 times – ( +2 ) – 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 about a year ago by jcagentzeroTutorials1 comment – viewed 3,250 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 about a year ago by bluyellTutorials0 comments – viewed 4,221 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 about a year ago by Kostas Apazidis (KonApaz)Tutorials8 comments – viewed 15,918 times – ( +8 ) – 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 about a year ago by Kartik VTutorials22 comments – viewed 67,797 times – ( +54 / -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 about a year ago by sefburhanTutorials5 comments – viewed 6,145 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

Integrate Zend 2 XML writer into Yii

Created about a year ago by JonnyTutorials0 comments – viewed 3,866 times – ( +2 ) – version 1.1
By Integrating the Zend 2.* framework into Yii you can quickly and painlessly generate XML outputs from your controllers. This will be helpful to anyone who has never done this before or only done it with Zend 1 as the introduction of namespaces can be strange when you first view them.
tags: zend, XML