Wiki articles in category Tutorials tagged with "database"

Showing 1-7 of 7 items.

Active Record snapshotting (Model data base history)

Created 7 years ago by Bizley, updated 7 years ago by Bizley.

One of the common tasks the web application might be required to perform, especially the app using some kind of a CMS, is to save the history of data changes. Your client for sure will want the answer to this simple question - If I mess this up or delete by accident can we bring it back? Well, DB backup is one thing and quick recovery is another - let's talk about latter one.

1 0
5 followers
Viewed: 15 518 times
Version: 1.1
Category: Tutorials

CRUD operation in Yii framework

Created 8 years ago by Mohammad Fareed, updated 4 years ago by samdark.

Simple Yii Script for performing CRUD operations:

0 4
6 followers
Viewed: 30 475 times
Version: 1.1
Category: Tutorials

Insert data from database to another database table

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

According to below wiki we could migrate database schema to another database

1 0
2 followers
Viewed: 14 422 times
Version: 1.1
Category: Tutorials

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

Created 8 years ago by Kartik V, updated 8 years ago by Kartik V.

Note the tag {{homeUrl}} will be dynamically replaced at runtime.

1 3
40 followers
Viewed: 20 657 times
Version: 2.0
Category: Tutorials

How to display static pages in Yii with database content?

Created 10 years ago by yasen, updated 10 years ago by yasen.

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:

3 0
13 followers
Viewed: 40 856 times
Version: 1.1
Category: Tutorials

Auto set model fields values

Created 10 years ago by vibhaJadwani, updated 10 years ago by vibhaJadwani.

This is a tutorial for how to auto set model values without any code.

5 0
11 followers
Viewed: 29 863 times
Version: 1.1
Category: Tutorials

Multiple Databases and Multiple Domains

Created 12 years ago by got 2 doodle, updated 12 years ago by Maurizio Domba Cerin.

Add these lines in /config/main.php

'components'=>array(
.........
		'db'=>array(
			'connectionString' => 'mysql:host=localhost;dbname=database1',
			'emulatePrepare' => true,
			'username' => 'root',
			'password' => 'itsasecret',
			'charset' => 'utf8',
		),
		'db2'=>array(
		    'class' => 'CDbConnection',
			'connectionString' => 'mysql:host=localhost;dbname=databa...
13 2
15 followers
Viewed: 53 615 times
Version: 1.1
Category: Tutorials
Tags: database