Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 61-70 of 183 result(s).

Single table inheritance

Created about a year ago by samdarkHow-tos6 comments – viewed 13,705 times – ( +31 )
Relational databases do not support inheritance so if we need to represent it, we have to somehow store meta info while keeping performance by minimizing JOINs. One way to solve this problem is using single table inheritance. All fields for the whole class tree are stored in a single table. Class name is stored in the type field of the same table.

Integrating Wordpress and Yii: still another approach, using Yii as the router/controller

Created about a year ago by fr0d0zHow-tos12 comments – viewed 13,290 times – ( +19 )
A lot of people have written posts on integrating Yii and WordPress. This article combines goncin's approach with an article I read about integrating Symfony and WordPress and applies it all to Yii and WordPress.

How to insert a Simple Dialog Box

Created about a year ago by bluyellHow-tos3 comments – viewed 13,142 times – ( +5 )
I build this simple PHP class (DialogBox.php at the bottom of this wiki) to help you in the dialog box usage on Yii applications. The goal is run any Yii actions into this dialog box and return the resulting value to the calling instance.

Include Yii framework in a Joomla module

Created 2 years ago by zaccariaHow-tos6 comments – viewed 13,069 times – ( +7 / -1 )
Delploying anything using joomla's framework is quite difficult. The framework don't provide a good MVC structure and the documentation is very poor.

How to use nested DB transactions (MySQL 5+, PostgreSQL)

Created 3 years ago by mindehHow-tos4 comments – viewed 13,061 times – ( +32 )
Original source code and idea are from: PHP, PDO & Nested Transactions.

Using a CDbDataReader (sql query result) in a zii widget (such as CGridView or CListView)

Created about a year ago by Revelis Luc BonninHow-tos1 comment – viewed 12,934 times – ( +9 / -1 )
If in your application you have to proceed to a complex SQL query that is not associated to a model, you will use CDbDataReader like it is described in the Yii documentation. An example could be

jQuery UI Datepicker

Created 5 months ago by softarkHow-tos0 comments – viewed 12,710 times – ( +8 )
We all love the convenient gadget, namely jQuery UI Datepicker as an input element for date. Yii supports it as CJuiDatePicker. Let's see how to use it.

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

Created about a year ago by c@cbaHow-tos2 comments – viewed 12,654 times – ( +11 )
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).

How to install pdo_oci

Created 3 years ago by Horacio SeguraHow-tos1 comment – viewed 12,387 times – ( +1 )
From: http://lacot.org/ and me.
tags: pdo oci php

CPhpAuthManager - how it works, and when to use it

Created about a year ago by dckurushinHow-tos5 comments – viewed 12,341 times – ( +1 / -3 )
Before reading this article, you should first learn this How to setup RBAC with a php file