How do I set up my yii framework to work with master/slave database configuration?
How do I set up my yii framework to work with master/slave database configuration?
have a look at this extension :
dbreadwritesplitting
there are some other solutions ,you can use the keywords "master slave" to search in this site .
or may be the solution is not limit to yii but all php projects , you can google it with "php master slave database"
Please, someone has been worked with this extension would know if is valid for write method ->save() of ActiveRecord saves on master server?