Wiki articles

Showing 41-60 of 147 items.

How to sum (Update) of all input button price value using jquery

Created 5 years ago by Ankit Modi, updated 5 years ago by Ankit Modi.

Hi Friends, In this tutorial, how to update the sum of all the button data-price value using jquery, Just Follow three step and it's work easily.I hope It may be some helpful to others. See Image

0 0
2 followers
Viewed: 14 885 times
Version: all
Category: How-tos

Building a search GET request with scenarios ; calling a SearchModel from URLs...

Created 5 years ago by Louis Gac, updated 5 years ago by Louis Gac.

Search Models are a very elegant and powerful way to build an Active Data Provider. If you use them a lot, you'll quickly need to use scenarios, which will lead you to a very DRY Controller code.

0 0
2 followers
Viewed: 15 551 times
Version: 2.0
Category: Tips

My Own Components Folder in Yii2

Created 6 years ago by CTala, updated 6 years ago by CTala.

In Yii1 I used to have my own components under the components folder of the structure, now with namespacing this is a little bit different.

2 1
2 followers
Viewed: 15 669 times
Version: 2.0
Category: Tips

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

Created 6 years ago by Kartik V, updated 6 years ago by Kartik V.

The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs.

1 0
37 followers
Viewed: 15 894 times
Version: 2.0
Category: How-tos

Profiling using XDebug

Created 7 years ago by le_top, updated 5 years ago by le_top.

A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

3 0
3 followers
Viewed: 16 159 times
Version: all
Category: How-tos

How to organize Design "things" in Yii 2 (themes and layout)

Created a year ago by s.oli, updated a year ago by samdark.

Sometimes the App needs a nicer look & feel, so its necessary to organize the assets for this and Yii can help a lot to make it easy. In this article I provide tips for handling multiple "Designs". I use these three features:

1 0
2 followers
Viewed: 16 166 times
Version: 2.0
Category: Tips

Export query content to excel through any of your controllers, also can set cssClass for header/odd/even rows, auto download

Created 4 years ago by Scott_Huang, updated 4 years ago by Scott_Huang.

To generate excel by query content, and download through any controller. You also can bind cssClass to header/odd/even rows. As for header, you even can set cssClass for each column.

$this->export2excel($excel_content,$excel_file);

in your controller.

2 0
2 followers
Viewed: 17 011 times
Version: 2.0
Category: Tutorials

Simple revealing and hiding the password in the password field

Created 4 years ago by Bizley, updated 4 years ago by Bizley.

There are numerous usability problems:

3 0
4 followers
Viewed: 17 425 times
Version: 2.0
Category: How-tos

Managing a star rating with the StarRating widget in Yii 2

Created 6 years ago by Kartik V, updated 6 years ago by Kartik V.

In Yii 1.x, there was a built in widget CStarRating based on the jquery star rating plugin. There exists no prebuilt solution in Yii2, however the same concepts can be extended using any jquery plugin.

1 3
41 followers
Viewed: 17 707 times
Version: 2.0
Category: How-tos

Nested Set with Yii2

Created a year ago by sangprabo, updated a year ago by sangprabo.

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...

6 0
3 followers
Viewed: 17 927 times
Version: 2.0
Category: Tutorials

Using your own forked version of extensions with composer

Created 6 years ago by Kartik V, updated 4 years ago by Kartik V.

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:

3 2
40 followers
Viewed: 18 134 times
Version: 2.0
Category: Tutorials

Role Management

Created 5 years ago by Dency G B, updated 5 years ago by Dency G B.

Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.

0 0
5 followers
Viewed: 18 279 times
Version: 2.0
Category: How-tos
Tags: rbac, yii2

How to get SEO friendly URL using Model and new getUrl() function

Created 2 years ago by shiv, updated 2 years ago by shiv.

We all need SEO friendly URLs for our projects. its not always good to call route with params so we can generalise it for all models using a common function.

2 0
1 follower
Viewed: 18 927 times
Version: 2.0
Category: How-tos

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

Created a year ago by toaster, updated a year ago by toaster.

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...

9 0
2 followers
Viewed: 19 345 times
Version: 2.0
Category: Tutorials

Cómo enviar emails usando SMTP

Created 6 years ago by robregonm, updated 6 years ago by robregonm.
2 0
2 followers
Viewed: 19 517 times
Version: 2.0
Category: How-tos

Automatic Parameter Binding to POST vars in Yii2

Created 6 years ago by aarondfrancis, updated 6 years ago by YiiJeka.

I wrote about this on my blog, but wanted to post it here too.

0 0
4 followers
Viewed: 19 959 times
Version: 2.0
Category: How-tos

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

Created 6 years ago by realtebo, updated 5 years ago by realtebo.

Personalmente trovo che la versione "portable" sia molto più semplice da aggiornare, ed io tengo sempre costantemente aggiornato TUTTO il parco software relativo al mio webserver.

0 0
2 followers
Viewed: 20 361 times
Version: 2.0
Category: Tutorials

How to use yii2-authclient to communicate with Twitter using Single Access Token

Created 5 years ago by Antonio Ramirez, updated 5 years ago by Antonio Ramirez.

It is quite simple, but I am sure this small tutorial will help more than one of you out there :)

2 0
4 followers
Viewed: 20 493 times
Version: 2.0
Category: How-tos

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created 6 years ago by edoardo849, updated 6 years ago by CeBe.

suppose to have in Mongo a collection "user" like:

3 0
6 followers
Viewed: 20 936 times
Version: 2.0
Category: How-tos

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

Created 6 years ago by Kartik V, updated 6 years ago by Kartik V.

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.

0 0
37 followers
Viewed: 21 039 times
Version: 2.0
Category: Tips