hi,
let’s say we want to send an email with a common layout in some model afterSave
the email have a common layout we use through renderFile
the afterSave can be called in a usual web app and in a console app
is there a systematic way to call it that works in both
I suggest moving renderFile into a static method on Yii or CApplication (ie. Yii::renderFile or Yii::app()->renderFile)
because it does not depend on any thing