I'm experienced in Yii2 framework, but I just discovered Craft CMS and I already love it.
I use to develop Yii 2 modules using their own DB tables, models, controllers and views.
I usually use Yii extensions and widgets from Krajee (http://demos.krajee.com/widgets) for the frontend, to create rather complex forms.
I'd like to integrate such modules and widgets in some pages of a Craft-managed website, using Craft for user management/access control and templating if possible.
Which structure would you recommend ?
Should I keep a separate instance of Yii 2 on the same server ? If so, how can I integrate Yii2 views (PHP code) in Twig templates (no PHP) ?
Or should I redevelop Craft modules or plugins using Twig ? If so, how can I integrate Yii 2 frontend widgets and extensions in Twig templates and Craft CMS modules ?
Thanks in advance for your advice.