Fix getPartial method to support application.class.view config