I’m again to this problem. I have a class which sends email. The context of the emails are loaded from a views folder emails/ where I keep my emails ex:
Yii::app ()->controller->renderPartial ( 'application.views.email.layouts.email', array (
'content' => Yii::app ()->controller->renderPartial ( 'application.views.email.partials.email.welcome' )
) );
The above works fine but what if I keep my themes folder at the same level with application. The code should look like:
Yii::app ()->controller->renderPartial ( 'themes.classic.views.email.layouts.email', array (
'content' => Yii::app ()->controller->renderPartial ( 'themes.classic.views.email.partials.email.welcome' )
) );
The renderPartial method seems to fail searching in that directory. Any ideas?