Wiki articles in category Tutorials tagged with "database"

Showing 1-7 of 7 items.

Active Record snapshotting (Model data base history)

Created 4 years ago by Bizley, updated 4 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: 11 142 times
Version: 1.1
Category: Tutorials

CRUD operation in Yii framework

Created 5 years ago by Mohammad Fareed, updated 8 months ago by samdark.

Simple Yii Script for performing CRUD operations:

0 4
6 followers
Viewed: 22 509 times
Version: 1.1
Category: Tutorials

Insert data from database to another database table

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

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

1 0
2 followers
Viewed: 9 486 times
Version: 1.1
Category: Tutorials

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

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

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

0 3
40 followers
Viewed: 13 091 times
Version: 2.0
Category: Tutorials

How to display static pages in Yii with database content?

Created 7 years ago by yasen, updated 6 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: 34 170 times
Version: 1.1
Category: Tutorials

Auto set model fields values

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

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

5 0
11 followers
Viewed: 25 052 times
Version: 1.1
Category: Tutorials

Multiple Databases and Multiple Domains

Created 9 years ago by got 2 doodle, updated 8 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
17 followers
Viewed: 46 200 times
Version: 1.1
Category: Tutorials
Tags: database