Wiki articles in category Tutorials tagged with "database"

Showing 1-7 of 7 items.

CRUD operation in Yii framework

Created 9 years ago by Mohammad Fareed, updated 5 years ago by samdark.

Simple Yii Script for performing CRUD operations:

0 4
6 followers
Viewed: 32 491 times
Version: 1.1
Category: Tutorials

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

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

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

2 3
41 followers
Viewed: 23 653 times
Version: 2.0
Category: Tutorials

Insert data from database to another database table

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

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

1 0
2 followers
Viewed: 15 557 times
Version: 1.1
Category: Tutorials

Active Record snapshotting (Model data base history)

Created 9 years ago by Bizley, updated 9 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: 16 521 times
Version: 1.1
Category: Tutorials

How to display static pages in Yii with database content?

Created 11 years ago by yasen, updated 11 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: 42 295 times
Version: 1.1
Category: Tutorials

Auto set model fields values

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

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

5 0
11 followers
Viewed: 30 984 times
Version: 1.1
Category: Tutorials

Multiple Databases and Multiple Domains

Created 13 years ago by got 2 doodle, updated 13 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: 55 328 times
Version: 1.1
Category: Tutorials
Tags: database