Wiki articles in category How-tos tagged with "database"

Showing 1-7 of 7 items.

Change default date format in Oracle

Created 6 years ago by lenovo lenovo, updated 6 years ago by samdark samdark.

Default date format in Oracle is DD-MON-RR (25-JAN-18). With that output, we can't using date formatting.

0 0
2 followers
Viewed: 78 775 times
Version: 2.0
Category: How-tos
Tags: database

Generate CTreeview from database table and update a model

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

Suppose we want to set a category to product (or an item in general term), Also suppose categories has sub-categories (multi-level)

1 0
1 follower
Viewed: 14 826 times
Version: 1.1
Category: How-tos

How to avoid a database update if the ActiveRecord was not modified

Created 11 years ago by tomvdp tomvdp, updated 11 years ago by tomvdp tomvdp.

The classic Yii way for doing an update action is as follows:

1 0
3 followers
Viewed: 29 297 times
Version: 1.1
Category: How-tos

Multiple Database Connection : Select database based on login user id, Dynamic

Created 12 years ago by Rajith R Rajith R, updated 11 years ago by parthshah parthshah.

create a class file under protected\components named RActiveRecord.php

7 0
13 followers
Viewed: 47 988 times
Version: 1.1
Category: How-tos

Sub-domains with different databases in Yii!

Created 14 years ago by jwerd jwerd, updated 14 years ago by jwerd jwerd.

I used another example posted here a while back where the person was modifying the index.php and adding in a switch case for different domains and loading separate config files. This was actually too much for me, because all my portals are the exact same (as far as routes, modules, extensions, etc) and if I ever wanted to add another route it wouldn't be feasible opening up all the config files t...

2 0
12 followers
Viewed: 27 215 times
Version: 1.1
Category: How-tos

Single table inheritance

Created 14 years ago by samdark samdark, updated 14 years ago by samdark samdark.

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...

34 0
35 followers
Viewed: 55 397 times
Version: 1.1
Category: How-tos

Multiple-database support in Yii

Created 14 years ago by Steve Friedl Steve Friedl, updated 13 years ago by phazei phazei.

The customary configuration of a Yii application includes just a single database section in the protected/config/main.php file, but it's easy to extend this to support more than one, tying each Model to one of the databases.

20 0
39 followers
Viewed: 150 286 times
Version: 1.1
Category: How-tos
Tags: database