Fixed the ERestController->$developmentFlag, now the value will be YII_DEBUG.