Showing 21-40 of 826 items.

Nested Set with Yii2

Created 7 years ago by sangprabo sangprabo, updated 7 years ago by sangprabo sangprabo. 1 comment

The nested set behaviour is an approach to store hierarchical data in relational databases. For example, if we have many categories for our product or items. One category can be a "parent" for other categories, means that one category consists of more than one category. The model can be drawn using a "tree" model. There are other approaches available but what we will learn in this article is speci...

7 0
3
Viewed: 95 979 times
Version: 2.0
Category: Tutorials

Batch Gridview data ajax send splitted in chunks displaying bootstrap Progress bar

Created 7 years ago by toaster toaster, updated 7 years ago by toaster toaster. 1 comment

The scenario in which this wiki can be useful is when you have to send an (huge) array of model ids and perform a time consuming computation with it like linking every model to other models. The idea is to split the array into smaller arrays and perform sequential ajax requests, showing the calculation progress using a [Bootstrap Progress bar](https://www.yiiframework.com/extension/yiisoft/yii2-bo...

8 0
2
Viewed: 41 575 times
Version: 2.0
Category: Tutorials

Getting information from the current locale

Created 8 years ago by CeBe CeBe, updated 8 years ago by CeBe CeBe. 0 comments

Yii 2.0 comes with a formatter component to format dates, numbers, and other values for international users according to their locale. This is very useful for displaying data. When working with incoming data or when using enhanced input methods like the [MaskedInput widget](https://www.yiiframework.com/doc/api/2.0/yii-widgets-maskedinp...

5 0
2
Viewed: 27 428 times
Version: 2.0
Category: How-tos

What SQL-Statement creates yii?

Created 8 years ago by Necip Necip, updated 8 years ago by Necip Necip. 0 comments

The usual way to find out what Yii has created for an SQL query is to mutilate the SQL in the sourcecode and call the program again so that the SQL statement with errors is displayed. Or you can use the SQL logger, which must be switched on and off each time and logs all SQL statements, which leads to an enormous slowdown in program execution and decelerates your workflow.

0 0
1
Viewed: 16 842 times
Version: 1.1
Category: Tips

An alternative way to ElasticSearch

Created 8 years ago by Necip Necip, updated 3 years ago by Necip Necip. 5 comments

This article is for those who have dealt with the complexity of Elasticsearch or any other indexing machines and are looking for an easier way to index the existing database without additional effort.

1 0
2
Viewed: 50 008 times
Version: all
Category: How-tos