php - Is it possible to have one project on one domain and use two frameworks (Yii and Yii2)? -


my site written on yii framework (v1) , start rewrite using yii2. plan step step starting simple, solitary parts.

but can't understand how can combine 2 frameworks in background of visitors, possible @ ? assuming have php 5.4 (or if need 5.5) on server, 1 domain name no subdomains.

eg: site has modular structure (it's real so) , have modules: news , articles. rewrite news on yii2 , articles stay using yii,

mysite.com/news , mysite.com/articles - should show same before , visitors shouldn't notice news uses framework (url should same before)

question is: how can reach if it's possible ? have practical solution or did in real project ?

if know how config url rewrite in nginx or apache , yes, can .

the essence match url regex, base on difference of url load different index.php of different framework.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -