Wiki

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

Using International Dates

Created 5 years ago by Russell EnglandHow-tos4 comments – viewed 37,954 times – ( +18 ) – version 1.1
I needed British (dd/mm/yyyy) formatted dates throughout my application but found it very difficult to find examples of how to do this - until I found this excellent forum post http://www.yiiframework.com/forum/index.php?/topic/3649-dealing-with-i18n-date-formats/

Getting the Most out of APC for Yii

Created 5 years ago by Da:SourcererHow-tos10 comments – viewed 37,588 times – ( +17 ) – version 1.1
The Advanced PHP Cache is a PHP extension which primarily serves as an opcode cache for PHP. The basic idea is to save PHP from re-evaluating the PHP code to intermediate bytecode on each request. Installing and enabling APC already yields a significant performance benefit. However, APC is not a black box that will magically change all for the better. More over it is important to understand that APC needs memory to operate.
tags: caching, apc

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

Created 3 years ago by Maug LeeHow-tos2 comments – viewed 37,483 times – ( +8 ) – version 1.1
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.

AssetManager: clearing browser's cache on site update

Created 5 years ago by dhampikHow-tos5 comments – viewed 37,396 times – ( +19 ) – version 1.1
If you like the things to be short and clear, then you can skip right to a short summary of instructions at the end of this article.

How to use Expression in default AccessControl to allow only the owner to do some action

Created 3 years ago by whatifHow-tos2 comments – viewed 37,318 times – ( +8 / -1 ) – version 1.1
Hi Everyone

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

Created 4 years ago by rAWTAZHow-tos0 comments – viewed 36,852 times – ( +7 ) – version 1.1
This article intends to summarize the steps taken to set up PHPUnit and Selenium for a Yii project, with IntelliJ IDEA Ultimate (the IDE). It was done on Mac OS X 10.6.

Client-side form validation using Twitter Bootstrap's Popovers

Created 3 years ago by TrejderHow-tos4 comments – viewed 36,410 times – ( +4 / -1 ) – version 1.1
This article explains how to easily turn standard text-line validation errors into beautifully and professionally looking Twitter Bootstrap's Popovers.

Additional form data with XUpload

Created 4 years ago by AsgarothHow-tos7 comments – viewed 36,003 times – ( +9 ) – version 1.1
In this article you'll learn how to send additional form data when uploading files using XUpload widget

Nested inline active fields inside Bootstrap horizontal forms

Created 2 years ago by Kartik VHow-tos2 comments – viewed 35,799 times – ( +42 ) – version 2.0
Are you using the Bootstrap 3 form styles with Yii 2 Active Forms? Have you faced problems in displaying complex layouts which needs you to display multiple inline form fields in a single row, within bootstrap horizontal forms. Then read on.

Drop down list with enum values for column of type ENUM >+> incorporate into giix

Created 5 years ago by c@cbaHow-tos4 comments – viewed 35,446 times – ( +14 ) – version 1.1
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a drop down list, which has the enum values as options. The main code was contributed by zaccaria in the forum (see this post).