Wiki articles in category How-tos tagged with "Widgets"

Showing 1-8 of 8 items.

How to create a Widget - Recent Comments widget

Created 11 years ago by Nisanth thulasi, updated 6 years ago by samdark.

Here's a simple way to create a Recent comments showing widget to be used in your templates. The idea is just to highlighting your blog's new comments.

5 0
6 followers
Viewed: 44 821 times
Version: 1.1
Category: How-tos

CGridView. Add custom class to table rows preserving original „odd“ and „even“

Created 12 years ago by Maug Lee, updated 11 years ago by yugene.

Lets say we have such a CGridView widget showing a list of users for administrator. Users have status „active“ or „disabled“. Grid widget puts class „odd“ or „even“ to rows and we want to preserve this. So we want to add a class „disabled“ to rows with disabled users.

Implementation

<?php
$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'user-grid',
	'dat...
7 0
4 followers
Viewed: 55 948 times
Version: 1.1
Category: How-tos
11 0
20 followers
Viewed: 34 325 times
Version: 1.1
Category: How-tos

A simple go back button widget

Created 12 years ago by CTala, updated 12 years ago by bennouna.

We all know that widgets are really useful. We can use the almost everywhere we want, and we can use the same code a lot of times ( Almost OOP ).

2 1
6 followers
Viewed: 38 524 times
Version: 1.1
Category: How-tos

How to hide index.php on Microsoft Windows Server with IIS7

Created 12 years ago by Giuliano, updated 12 years ago by Giuliano.

I've seen lot of people struggling in finding a way to hide the script name when installing their Yii Application. In an Apache environment everything is well documented in this wiki article, but for those who are running their app on a Windows Server machine there are no hints.

6 0
6 followers
Viewed: 71 565 times
Version: 1.1
Category: How-tos

How to use a Widget as an Action Provider

Created 14 years ago by Antonio Ramirez, updated 9 years ago by stinkytofu.

All done, now we can call all the actionProvider actions as controllerID/actionPrefix.actionID. Here is the example:

24 0
41 followers
Viewed: 62 903 times
Version: 1.1
Category: How-tos

Using the jqueryslidemenu plugin with CMenu

Created 14 years ago by Antonio Ramirez, updated 14 years ago by pc131.

Yii makes it really easy for all to use their already made objects that automate everything we do. It provides also great power of flexibility and styling but hey, we programmers tend to complicate our lives and push a little more the power of our tools.

18 1
8 followers
Viewed: 43 392 times
Version: 1.1
Category: How-tos

Using the jamselect widget with min and max values

Created 14 years ago by got 2 doodle, updated 14 years ago by wei.

The keywords will be stored in a text field in a comma delimited format. The keywords will be created by the site administrator.

2 0
1 follower
Viewed: 20 209 times
Version: 1.1
Category: How-tos