List of all Articles

Refreshing a widget in Yii

Yesterday, I wrote an AJAX shopping basket widget which, as I'm sure you can imagine, I wanted to refresh when items are added or deleted. However, having written the code to display the widget it confused me for a while how I would update the widget through AJAX

[more...]

Yii - Example of Creating a submenu widget

This is a continuation of two previous articles, How to make a dynamic Sub-menu and How to make a dynamic sub-menu – UPDATE, which show the mechanisms by which you can build a dynamic submenu system, populating the dropdowns from the relevant controller

[more...]

Yii: How to make a dynamic sub-menu

I've seen a number of people have been trying to build a dynamic submenu that sits underneath the main menu and changes with each main menu. The standard Yii menu widget assumes or enforces the hard-coding of menu entries within the layout

[more...]

Pagination with CGridview in Yii

I've been using the CGridView alot recently and have found some great tweaks to make it more useful. One of these is setting the pagination to a user preset, such that each user can choose their preferred pagination length

[more...]