Demos
·
Guide
·
Class Reference
·
Wiki
·
Extensions
·
Forum
·
Live Chat
·
Login
About
About Yii
Features
Performance
License
Contact Us
Downloads
Framework
Extensions
Demos
Logo
Documentation
Take the Tour
Tutorials
Class Reference
Wiki
Screencasts
Resources
Development
Contribute to Yii
Latest Updates
Report a Bug
Report a Security Issue
Community
Forum
Live Chat
News
Hall of Fame
Badges
search
Documentation
Take the Tour
Tutorials
Class Reference
Wiki
Screencasts
Resources
Wiki
Follow @yiiframework
Articles tagged with "database"
X
189
123
78
Displaying 11-13 of 13 result(s).
Getting nulls from database instead of empty strings
Created 2 years ago by
samdark
–
Tips
–
2 comments
– viewed 6,652 times – (
+12
)
To get null from database instead of empty strings you need to set up your DB connection as follows:
tags:
database
,
null
Multiple-database support in Yii
Created 2 years ago by
Steve Friedl
–
How-tos
–
8 comments
– viewed 35,853 times – (
+19
)
The customary configuration of a Yii application includes just a single database section in the protected/config/main.php file, but it's easy to extend this to support more than one, tying each Model to one of the databases.
tags:
Database
Multiple Databases and Multiple Domains
Created 2 years ago by
got 2 doodle
–
Tutorials
–
2 comments
– viewed 20,720 times – (
+12
/
-2
)
Add these lines in /config/main.php
tags:
database
<< First
< Previous
1
2
Next >
Last >>
Write new article
Search Wiki
Sorted by date
Sorted by date (updated)
Sorted by rating
Sorted by comments
Sorted by views
All categories
Tips
(106)
How-tos
(187)
Tutorials
(177)
FAQs
(7)
Others
(14)
Popular Tags
AJAX
(26)
Authentication
(18)
CGridView
(40)
File upload
(10)
Forms
(8)
Logging
(9)
URL
(9)
Widgets
(11)
active record
(11)
config
(12)
database
(13)
filter
(10)
i18n
(15)
rbac
(8)
search
(9)
security
(18)
tutorial
(22)
understanding
(11)
views
(10)
yii
(24)
Recent comments
oorastard
on
Cron Jobs in Yii
zainiafzan
on
Integrating HybridAuth directly into Yii without...
Sankalp Singha
on
How to use a single form to collect data for two...
gobinath
on
CButtonColumn: Use special variable $data for the...
nhexia
on
Yii for beginners