Wiki

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

How to show ajax delete status in CGridView like flash messages

Created 5 years ago by hasanaviHow-tos12 comments – viewed 45,424 times – ( +25 ) – 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())

Drills : Search by a HAS_MANY relation in Yii 2.0

Created 2 years ago by softarkTutorials4 comments – viewed 45,260 times – ( +19 ) – version 2.0
This article tries to describe the practical techniques of searching by a HAS_MANY relation using ActiveRecord of Yii 2.0.

Using Bootstrap with LESS

Created 4 years ago by Chris83How-tos1 comment – viewed 44,675 times – ( +14 ) – 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.

Single sign on across multiple subdomains

Created 6 years ago by ianarĂ©How-tos10 comments – viewed 44,401 times – ( +32 ) – 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.

Searching and Sorting by Count of Related Items in CGridView

Created 5 years ago by softarkHow-tos13 comments – viewed 44,241 times – ( +31 ) – version 1.1
Let's say we have two models and relation between them:

How to use YiiBooster TbFileUpload widget

Created 4 years ago by Antonio RamirezHow-tos15 comments – viewed 43,991 times – ( +11 ) – version 1.1
The following wiki is to explain how to make use of the TbFileUpload widget from YiiBooster. I have received a couple of requests and I thought was worth writing a wiki for it.

Editing, Deleting, and Viewing model data with the yii2-detail-view extension

Created 2 years ago by Kartik VTutorials1 comment – viewed 43,781 times – ( +37 / -1 ) – version 2.0
The yii2-detail-view extension offers you an easy way to EDIT and VIEW your model data, toggle these modes, and adds other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

Open bootstrap modal and load content via Ajax

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

Adding Yii Search to Your Browser Search Box

Created 6 years ago by qiangTips1 comment – viewed 43,395 times – ( +28 ) – version 1.1
The official Yii project site now supports OpenSearch. This means you can customize your browser's search box to enable direct search of the content in yiiframework.com. For example, by entering a Yii class name in the browser's search box, the corresponding class API page will be shown in the browser.
tags: search

How to use nested DB transactions (MySQL 5+, PostgreSQL)

Created 7 years ago by mindehHow-tos6 comments – viewed 42,907 times – ( +47 ) – version 1.1
Original source code and idea are from: PHP, PDO & Nested Transactions.