How Can I Use Yii From An Already Built App

Hi guys, first time posting here…

Im beginner in Yii and jr in PHP, I’d like to know if there is any chance of ussing Yii classes/methods, like the ones regarding Authentication and RBAC.

The other app is already built, so I think I would need to include a file of the Yii framework to make this happen, or that isn’t possible?


You definitely need to include the Yii framework directories/files. You could start rewriting parts of the existing app to use portions of Yii, but you would probably lose as much as you would gain; having a partially integrated framework would be really messy even though you might gain some from the usefulness of Yii.

Plus, if you’re new to Yii and jr in PHP it would probably set you up with really bad habits. Best to start clean if you can.