Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 81-90 of 329 result(s).

Update CGridview row separately using ajax request

Created 10 months ago by Kostas Apazidis (KonApaz)How-tos6 comments – viewed 7,483 times – ( +6 ) – version 1.1
There are cases you want to update a record on CGridview directly

Hyphenation of routes in URL management

Created 2 years ago by qiangHow-tos6 comments – viewed 16,134 times – ( +18 ) – version 1.1
In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.
tags: URL

Handling Bootstrap active tabs in Yii via URL

Created 2 years ago by JamesBarnsleyHow-tos6 comments – viewed 18,462 times – ( +7 ) – version 1.1
As a lead developer at Mutable Labs I found that when using the Yii Bootstrap tabs component you will sometimes want to direct the user to a specific tab and not necessarily the first tab. Yii Bootstrap already provides the "active" variable so you can define whether the tab is the active tab or not in PHP. I generally find though that a PHP solution to this problem is rather cumbersome as every tab component will need the PHP code inserted or you will have to extend the tab component somehow to do it.

Bootstrap Yii cGridView add popup button

Created 9 months ago by Arockia JohnsonHow-tos6 comments – viewed 5,789 times – ( +4 ) – version 1.1
Hi,

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 7 months ago by ThePr0f3550rHow-tos6 comments – viewed 21,475 times – ( +12 ) – version 2.0
Yii2 comes with a charming twitter bootstrap version 3. But if it is less, then you can integrate with web templates that you like. One example is wonderfull template "adminLTE"
tags: yii2, theme, adminLTE

Run Yiic directly from your app without a shell

Created 3 years ago by jacmoeHow-tos6 comments – viewed 23,809 times – ( +18 ) – version 1.1
Sometimes it would be nice if we could run yiic from an action, for example a migrate database button in our admin panel. Or because you are on a host which doesn't have shell access. Or maybe you are not allowed run popen or exec.

Use CGridview to sort and filter CSqlDataProvider - when used with UNRELATED tables (or complex queries)

Created 4 months ago by Gerhard LiebenbergHow-tos6 comments – viewed 3,801 times – version 1.1
I have two tables called hospitals and departments. I have a junction table between them which holds the departments in each hospital. But sometimes I need a list of "All hospitals with All possible departments" - regardless of whether they are linked in the junction table or not.

CGridView keep state of page and sort.

Created 2 years ago by DanielHow-tos5 comments – viewed 21,285 times – ( +6 ) – version 1.1
Remember-filters-gridview is one of the must-use extension on all of my project. However, it lacks of storing the page and sort variables of the grid view.

Displaying image in a CGridView column.

Created 2 years ago by sirin kHow-tos5 comments – viewed 49,314 times – ( +13 / -1 ) – version 1.1
This is a simple example of how we can display images in CGridviews.Imagine that you have an image field in your table ie either a location field or a blob type field used to store the images.
tags: CGridView, image

CSV Export

Created 2 years ago by JohnPollardHow-tos5 comments – viewed 12,728 times – ( +4 ) – version 1.1
I needed a csv export function for my cgridview and I wanted to export the entire result set of the sorted and filtered cgridview the user was viewing via ajax.
tags: csv, export