Wiki articles tagged with "widget"

Showing 1-11 of 11 items.

A simple widget - jump2link

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

namespace app\components;

0 0
1 follower
Viewed: 8 805 times
Version: 2.0
Category: Tutorials

How to show a Captcha in CForm?

Created 4 years ago by Rohit Suthar, updated 4 years ago by Rohit Suthar.

In this wiki I will show how could use a Captcha in yii CForm. The easy way to show captcha image is create a form using CHtml method & CActiveForm, but CForm also should be able to show a captcha.

0 0
3 followers
Viewed: 13 510 times
Version: 1.1
Category: How-tos

Managing a star rating with the StarRating widget in Yii 2

Created 5 years ago by Kartik V, updated 5 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: 16 107 times
Version: 2.0
Category: How-tos

Managing your nested dropdown dependency with DepDrop widget

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

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.

2 3
43 followers
Viewed: 34 644 times
Version: 2.0
Category: Tutorials

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

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

Note the tag {{homeUrl}} will be dynamically replaced at runtime.

0 3
40 followers
Viewed: 12 383 times
Version: 2.0
Category: Tutorials

How to read HTML5 Multiple File Input from controller?

Created 5 years ago by Kartik V, updated 4 months ago by samdark.
0 2
40 followers
Viewed: 13 298 times
Version: 2.0
Category: How-tos

How to use GridView with AJAX

Created 5 years ago by Antonio Ramirez, updated a year ago by CeBe.

With the adoption of PJax on Yii2 things  have change quite a bit with GridView when it comes to work with them in AJAX mode. It will probably be confusing at the beginning, but then you will soon realize how powerful the new approach is.

9 0
15 followers
Viewed: 69 952 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2

Additional form data with XUpload

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

In this article you'll learn how to send additional form data when uploading files using XUpload widget

7 0
13 followers
Viewed: 40 341 times
Version: 1.1
Category: How-tos

Extending CJuiDialog

Created 6 years ago by dstudio, updated 6 years ago by Maurizio Domba Cerin.

Sometimes you have CJuiDialog with different content but same buttons (or width, height). If you don't want to repeat yourself this is a great solution:

1 2
2 followers
Viewed: 13 979 times
Version: 1.1
Category: How-tos

SEO-conform Multilingual URLs + Language Selector Widget (i18n)

Created 7 years ago by c@cba, updated 7 years ago by c@cba.

You have a multilingual application, and you want the URL of a page to be different for different languages, to account for SEO. The URL for the contact page for example should look like http://something.com/en/contact in english, and http://something.com/de/contact in german. This tutorial describes how to make it happen.
Note that currently selected language is always a part...

28 0
42 followers
Viewed: 65 316 times
Version: 1.1
Category: Tutorials

How to create nice modal login widget with a CJuiDialog

Created 8 years ago by Igor Ivanovic, updated 8 years ago by Maurizio Domba Cerin.

You have to extend the widget class and configure it for user login widget

6 0
30 followers
Viewed: 55 612 times
Version: 1.1
Category: Tutorials