Yii + Moodle

Hi, everyone! I’ve just finished an application with Yii and now I have to integrate it to moodle as an activity module and I’m trying to figure out where to put what. Please has anyone here ever done it? I really need an example or guidelines and how to do it well.

Thanks in advance.

If you need guidelines than must chat with sales and support they can figure out your problem, what you need in moodle for module.