php - YII on different domain -
php - YII on different domain -
i have 2 part of application. first manager panel , pointed http://mysite.com/. other personal product page , pointed own domein http://product_domain.com/ . these parts have 2 different router maps mutual models, components , widgets. list of product domain have saved in database.
what best way separate parts?
p.s. maybe should have 2 different application or config?
what utilize combination of "prerouter" , modile.
yii supports way of "onbeginrequest" => array('class', 'function') in config.
in function can observe user came , create needed changes. illustration activate specific module (if functionality grouped in one), or set different defaultcontroller. perhaps want load custom theme?
you can in there before done.
php dns yii routes
Comments
Post a Comment