Reputation: 2507
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.
Upvotes: 3
Views: 493
Reputation: 361
Try using the module feature of yii2, you can convert your yii1 project as a module inside the yii2 application.
Upvotes: 1
Reputation: 1754
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.
Upvotes: 4