Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 101-110 of 297 result(s).

YiiBooster: How to implement files and images upload on TbRedactor Widget

Created about a year ago by Antonio RamirezHow-tos3 comments – viewed 17,085 times – ( +13 ) – version 1.1
I have been requested to provide a tutorial on how to use the file upload feature of the TbRedactor widget, and even though I am no longer supporting the library due that the work belongs to Clevertech, I feel that I owe that to the Yii developers. So, here is the  tutorial.

Yii registry, how to use it, does it exist at all?

Created 2 years ago by dckurushinHow-tos2 comments – viewed 16,979 times – ( +7 / -1 ) – version 1.1
From time to time people ask about registry...

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

Created about a year ago by Maug LeeHow-tos2 comments – viewed 16,975 times – ( +4 ) – 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.

How to render a view in Fancybox using ajax

Created about a year ago by rix.rix.How-tos1 comment – viewed 16,433 times – ( +6 ) – version 1.1
Sometimes you want to render a view in Fancybox.
tags: fancybox, ajax, views

Increasing AR performance in connections with Oracle

Created 3 years ago by TrejderHow-tos9 comments – viewed 15,882 times – ( +1 ) – version 1.1
Please, note. This article is entirely based on a work done by me colleague developer, who hasn't got account on this webpage and also hasn't got time for writing this article. I'm writing it for him. I will try to forward him any comments that may appear, but can't assure if/when he'll be able to answer. I'm far, far less experienced in Oracle therefore I won't probably be able to help myself.

How to use Smarty renderer in Yii

Created 3 years ago by dongbetaHow-tos2 comments – viewed 15,867 times – ( +4 ) – version 1.1
At first, create a class named SmartyRenderer under application/components or any directory you want.
tags: smarty, renderer

Yii User and Rights Implementation

Created about a year ago by Rajith RHow-tos4 comments – viewed 15,203 times – ( +6 ) – version 1.1
implementing some features of yii user and rights.

Enforcing "You must agree" requirements in forms

Created 3 years ago by Steve FriedlHow-tos3 comments – viewed 15,113 times – ( +29 ) – version 1.1
Checkboxes have two possible values, true and false, but some applications require that the user select one particular value before proceeding. Examples might be:
tags: validation

Handling Bootstrap active tabs in Yii via URL

Created about a year ago by JamesBarnsleyHow-tos6 comments – viewed 14,894 times – ( +6 ) – 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.

Integrating Wordpress and Yii,Working Out The Details.

Created about a year ago by drumaddictHow-tos4 comments – viewed 14,643 times – ( +8 ) – version 1.1
This article is based on fr0d0z's article Integrating Wordpress and Yii: still another approach, using Yii as the router/controller and provides more details on how to set up this integration.To be more specific,the idea is not to use any main.php layout in Yii's controllers.This gives the advantage that we do not need to modify any Yii code when we switch a theme in WordPress admin panel,provided we have done a very basic setup which I explain below.
tags: wordpress