Wiki

Articles tagged with "database", sorted by date (updated)X
Displaying 1-10 of 20 result(s).

CRUD operation in Yii framework

Updated about a month ago by Mohammad FareedTutorials4 comments – viewed 1,977 times – ( +1 / -6 ) – version all
Simple Yii Script for performing CRUD operations:

Insert data from database to another database table

Updated about a month ago by KonApazTutorials0 comments – viewed 1,101 times – ( +1 ) – version 1.1
According to below wiki we could migrate database schema to another database

Generate CTreeview from database table and update a model

Updated 2 months ago by KonApazHow-tos0 comments – viewed 1,173 times – ( +1 ) – version 1.1
Suppose we want to set a category to product (or an item in general term), Also suppose categories has sub-categories (multi-level)

How to store array/widget configuration to the database with config validation rules

Updated 2 months ago by Kartik VTutorials0 comments – viewed 1,268 times – ( +26 / -4 ) – version 2.0
You may have scenarios, where you want to store a specific array configuration to the database. A classic example could be saving Yii widget configuration to the database and then retrieving it at runtime, with dynamic parameters set. This wiki discusses one of the approaches to do this. Let's consider you have something like the NavBar configuration below to store in the db:

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

Updated 2 months ago by tomvdpHow-tos0 comments – viewed 2,148 times – ( +1 ) – version 1.1
The classic Yii way for doing an update action is as follows:

Multi Data Provider

Updated 9 months ago by Sharon LavieTips0 comments – viewed 5,039 times – ( +1 )
Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).

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

Updated 11 months ago by Rajith RHow-tos3 comments – viewed 11,233 times – ( +9 / -6 )
create a class file under protected\components named RActiveRecord.php

Guidelines for good schema design

Updated about a year ago by softarkTips13 comments – viewed 55,172 times – ( +139 ) – version 1.1
Virtually all Yii applications are built on top of a database, and though Yii is very flexible in how it addresses your DB, some design choices make things more convenient than others.

How to display static pages in Yii with database content?

Updated about a year ago by yasenTutorials4 comments – viewed 17,876 times – ( +8 ) – version 1.1
To extend further static pages as shown by Qiang http://www.yiiframework.com/wiki/22/how-to-display-static-pages-in-yii/ here're the steps to take:

Multiple-database support in Yii

Updated about a year ago by phazeiHow-tos14 comments – viewed 63,204 times – ( +28 ) – version 1.1
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.
tags: Database