Init from YiiBoilerplate