check field type in view.ctp template