Wiki

Articles tagged with "database"X
Displaying 1-10 of 15 result(s).

Multi Data Provider

Created 6 months ago by Sharon LavieTips0 comments – viewed 4,271 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

Created 8 months ago by Rajith RHow-tos4 comments – viewed 8,584 times – ( +6 )
create a class file under protected\components named RActiveRecord.php

How to display static pages in Yii with database content?

Created about a year ago by yasenTutorials4 comments – viewed 16,211 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:

Auto set model fields values

Created about a year ago by vibhaJadwaniTutorials3 comments – viewed 11,941 times – ( +8 ) – version 1.1
This is a tutorial for how to auto set model values without any code.

How to catch and log MySQL deadlock errors

Created 2 years ago by sebTips0 comments – viewed 7,592 times – ( +4 ) – version 1.1
This method allows to log InnoDB monitor output when deadlock error occured. This way we will have much more useful data to find and fix deadlock.
tags: database

Update two models with one view

Created 2 years ago by sensorarioTips10 comments – viewed 27,848 times – ( +10 / -2 ) – version 1.1
Suppose to have two models: Users and Emails. You do not want to store email in a Users model. And User can have 0 or many emails. This is the form generated to create a new user (just username).
tags: database, model, view, form

Use application on production/development environment without making changes

Created 2 years ago by ifdatticTips3 comments – viewed 26,765 times – ( +8 / -1 ) – version 1.1
I like programing on my localhost, however it really bugged me to make changes to index.php & config files on my production server. After combining all available wiki articles on this topic and some trial and error this is what I use for my applications so I could just upload it to production server and it will work without any changes.

Application-driven database with CDbMigration and an extended CActiveRecord

Created 2 years ago by Tudor IlisoiOthers0 comments – viewed 7,777 times – ( +8 ) – version 1.1
This is an incipient implementation of application-driven database with Yii.
tags: database, model

Guidelines for good schema design

Created 2 years ago by Steve FriedlTips13 comments – viewed 51,488 times – ( +138 ) – 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.

Sub-domains with different databases in Yii!

Created 2 years ago by jwerdHow-tos3 comments – viewed 10,965 times – ( +2 ) – version 1.1
Sub-domains with different databases in Yii!