Dev Added helper function to directly access the Yii app AND enable correct code completion.