Skip to content

Instantly share code, notes, and snippets.

@atishgoswami
Created May 5, 2013 18:25
Show Gist options
  • Save atishgoswami/5521680 to your computer and use it in GitHub Desktop.
Save atishgoswami/5521680 to your computer and use it in GitHub Desktop.
Helper for Error class for form fields
/**
* applyClass method
*
* @param string $feildname form feild name
*
* @return boolean true if isFieldError satisfies else false
*/
public function applyClass($feildname)
{
return ($this->isFieldError($feildname)) ? 'error' : '';
}//end applyClass()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment