Created
May 5, 2013 18:25
-
-
Save atishgoswami/5521680 to your computer and use it in GitHub Desktop.
Helper for Error class for form fields
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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