Wiki articles in category Tutorials tagged with "database"

Showing 1-6 of 6 items.

Active Record snapshotting (Model data base history)

Created 6 years ago by Bizley, updated 6 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: 14 027 times
Version: 1.1
Category: Tutorials

CRUD operation in Yii framework

Created 7 years ago by Mohammad Fareed, updated 2 years ago by samdark.

Simple Yii Script for performing CRUD operations:

0 4
6 followers
Viewed: 28 235 times
Version: 1.1
Category: Tutorials

Insert data from database to another database table

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

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

1 0
2 followers
Viewed: 12 794 times
Version: 1.1
Category: Tutorials

How to display static pages in Yii with database content?

Created 9 years ago by yasen, updated 8 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: 38 335 times
Version: 1.1
Category: Tutorials

Auto set model fields values

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

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

5 0
11 followers
Viewed: 28 191 times
Version: 1.1
Category: Tutorials

Multiple Databases and Multiple Domains

Created 11 years ago by got 2 doodle, updated 10 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
16 followers
Viewed: 51 236 times
Version: 1.1
Category: Tutorials
Tags: database