Wiki

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

Guidelines for good schema design

Updated 5 months ago by softarkTips13 comments – viewed 35,176 times – ( +123 )
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 5 months ago by yasenTutorials4 comments – viewed 8,410 times – ( +4 )
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 9 months ago by phazeiHow-tos8 comments – viewed 35,850 times – ( +19 )
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

Auto set model fields values

Updated 10 months ago by vibhaJadwaniTutorials3 comments – viewed 7,292 times – ( +7 )
This is a tutorial for how to auto set model values without any code.

Update two models with one view

Updated about a year ago by SebKTips10 comments – viewed 18,567 times – ( +10 / -2 )
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

How to catch and log MySQL deadlock errors

Updated about a year ago by sebTips0 comments – viewed 5,565 times – ( +4 )
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

Use application on production/development environment without making changes

Updated about a year ago by ifdatticTips2 comments – viewed 16,046 times – ( +8 / -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

Updated about a year ago by Tudor IlisoiOthers0 comments – viewed 5,833 times – ( +7 )
This is an incipient implementation of application-driven database with Yii.
tags: database, model

Sub-domains with different databases in Yii!

Updated about a year ago by jwerdHow-tos3 comments – viewed 7,925 times – ( +1 )
Sub-domains with different databases in Yii!

Single table inheritance

Updated about a year ago by samdarkHow-tos6 comments – viewed 13,636 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.