Wiki

Sorted by viewsX
Displaying 431-440 of 740 result(s).

How to create a Widget - Recent Comments widget

Created 9 months ago by Nisanth thulasiHow-tos3 comments – viewed 10,405 times – ( +5 ) – version all
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.

How to use bizRules in standard accessControl filter

Created about a year ago by Maciej Li┼╝ewskiHow-tos8 comments – viewed 10,380 times – ( +3 ) – version 1.1
I assume you are familiar with accessControl standard filter. It allows you to separate privileges to run some action from action code itself. There is however one problem with most common usage - you cannot use bizRules, at least based on some parameters passed to 'checkAccess' just because it is hard to pass them in accessRules() result.

Encapsulate db and module configurations

Created 5 years ago by ricardogranaTutorials3 comments – viewed 10,375 times – ( +7 ) – version 1.1
This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/
tags: module

ChromePHP for Yii

Created 4 years ago by imeheszTips0 comments – viewed 10,340 times – ( +3 / -2 ) – version 1.1
ChromePHP is a console logging extension for Google Chrome.

Filter & Sort by Summary Data in GridView Yii 2.0

Created 10 months ago by Kartik VTutorials6 comments – viewed 10,214 times – ( +37 / -4 ) – 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.

Yii code completion and calltips in Komodo Edit

Created 4 years ago by viterTips1 comment – viewed 10,182 times – ( +6 ) – version 1.1
My favourite editor is Komodo Edit (free and crossplatform) and I use it for my everyday coding work. Just recently I found out how to make it help me to work with Yii. :) So follow these steps:
tags: Komodo Edit

Using CListView to display items next to each other (in columns)

Created about a year ago by thyseusTips4 comments – viewed 10,179 times – ( +11 )
When using CListView to display multiple views next to each other, we can use the $index variable inside the viewFile to achieve this. As far as i know there is no extension or out-of-the-box functionality for this, so we need to apply a little hack:

get summary of related model via STAT relation

Created about a year ago by rootbearHow-tos2 comments – viewed 10,157 times – ( +7 / -1 ) – version 1.1
typical scenario: invoice, invoice items.

How to extend CFormatter, add i18n support to booleanFormat and use it in CDetailView

Created 3 years ago by c@cbaHow-tos3 comments – viewed 10,122 times – ( +9 ) – version 1.1
As you know, the CDetailView widget displays details of a single model. If no formatting is specified, boolean values that are stored in the database as 0 and 1, are represented in the detail view as 0 and 1. If formatted as boolean, they are represented as 'No' and 'Yes'. We want to add i18n support, so that Yes and No appear in the current language.

Using Yii with PHP 5.4 built-in webserver instead of Apache

Created 3 years ago by samdarkHow-tos1 comment – viewed 10,092 times – ( +21 ) – version 1.1
Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it: