Wiki

Articles tagged with "db", sorted by commentsX
Displaying 1-3 of 3 result(s).

How to use nested DB transactions (MySQL 5+, PostgreSQL)

Created 5 years ago by mindehHow-tos5 comments – viewed 23,100 times – ( +42 ) – version 1.1
Original source code and idea are from: PHP, PDO & Nested Transactions.

Configuring CWebLogRoute for DB profiling

Created 2 years ago by Igor IvanovicTutorials1 comment – viewed 15,556 times – ( +3 ) – version 1.1
/index.php /protected/config/main.php
tags: logger, profiler, db

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

Created 2 months ago by Kartik VTutorials0 comments – viewed 1,318 times – ( +26 / -4 ) – version 2.0
You may have scenarios, where you want to store a specific array configuration to the database. A classic example could be saving Yii widget configuration to the database and then retrieving it at runtime, with dynamic parameters set. This wiki discusses one of the approaches to do this. Let's consider you have something like the NavBar configuration below to store in the db: