I have a requirement to develop a REST api for a Yii 1.1 app using Yii 2. Yii 2 will be the front app which will handle the request and then use Yii 1.1 app for processing/information retrieval.
The example provided in the Yii 2 Guide is having Yii 2 app running inside Yii 1 where Yii 1 will be the front app receiving the requests.
My requirement is the other way round.
Any help is appreciated.
Here is a project to do exactly what you are doing: https://github.com/yiiext/yii2-yii-bridge
That said, I'd recommend WeSee's comment above and think about separating the apps completely and use an API to interface.