Wiki

Sorted by viewsX
Displaying 171-180 of 786 result(s).

Ajax update

Created 7 years ago by zaccariaTips2 comments – viewed 49,354 times – ( +21 / -3 ) – version 1.1
Often happens to have the need of change a part of the page with ajax.
tags: AJAX

Real-time display of server push data using Server-Sent Events (SSE)

Created 5 years ago by bennounaHow-tos16 comments – viewed 49,054 times – ( +12 / -1 ) – version 1.1
There are several methods and techniques that come handy in the case you need to call an external resource periodically or if you are waiting for a server push, but I present here an easy and straightforward one using HTML5's Server-Sent Events (SSE).

Custom Autocomplete Display and Value Submission

Created 6 years ago by Antonio RamirezHow-tos6 comments – viewed 48,145 times – ( +14 / -2 ) – version 1.1
How many of us has wondered how to create an autocomplete that will display the names of a related models but do require the id of that selected name to be submitted for model creation/update?

Single sign on across multiple subdomains

Created 6 years ago by ianarĂ©How-tos11 comments – viewed 47,624 times – ( +32 / -1 ) – version 1.1
This had me stumped for a while so I figured it would be nice to share here to avoid others the grief.

Open bootstrap modal and load content via Ajax

Created 3 years ago by JbalTeroHow-tos1 comment – viewed 47,531 times – ( +3 / -1 ) – version 1.1
My goal here is to Open bootstrap modal and load ANY content using ajax response.

How to show ajax delete status in CGridView like flash messages

Created 6 years ago by hasanaviHow-tos12 comments – viewed 47,418 times – ( +25 / -1 ) – version 1.1
I've seen many tickets regarding how to show friendly delete confirmation using CGridView's CButtonColumn in ajax request. If you are using relational database, after producing CRUD functionality when you try to delete a record in ajax mode which has child record it can't be deleted and you can see the ajax loader forever. By this way you can't show the users if a record has been successfully deleted or if there are some problem in flash style (setFlash() / getFlash())

Installation guide: Yii-2 advanced template with RBAC system

Created about a year ago by Sherin JoseTutorials3 comments – viewed 47,370 times – ( +13 / -3 ) – version 2.0
Welcome, all of you !
tags: install, yii2, rbac

Searching and Sorting by Count of Related Items in CGridView

Created 5 years ago by softarkHow-tos14 comments – viewed 47,258 times – ( +33 / -1 ) – version 1.1
Let's say we have two models and relation between them:

Filter & Sort by Summary Data in GridView Yii 2.0

Created 3 years ago by Kartik VTutorials7 comments – viewed 47,041 times – ( +40 / -5 ) – version 2.0
This wiki explains how to add summary data from related models into your Yii Framework 2.0 gridview with filtering and sorting by the summary columns.

Using Bootstrap with LESS

Created 4 years ago by Chris83How-tos1 comment – viewed 46,230 times – ( +14 / -1 ) – version 1.1
I discovered Twitter Bootstrap almost two years ago. After trying it out for a while I fell in love with it. It didn't take long before I realized that it would be great to write an extension that allowed developers to start using Bootstrap in their Yii projects. One night I sat down and started writing what later became my now popular bootstrap extension. Now that the extension is quite widely used in the community I felt that it was time to write about how to use Bootstrap to its full potential. If you use the Bootstrap CSS files you're really missing out on some great features. After reading this article you'll be able to take full advantage of Bootstrap using LESS.