public static function formvalidation()
	{
		if (isset(self::$loaded[__METHOD__]))
		{
			return;
		}

		self::framework();

		Asset::script('assets/validate.js', true, true);

		self::$loaded[__METHOD__] = true;
	}
public static function formvalidation()
	{
		if (isset(self::$loaded[__METHOD__]))
		{
			return;
		}

		self::framework();

		Asset::script('assets/validate.js', true, true);

		self::$loaded[__METHOD__] = true;
	}
public static function formvalidation ( ) { if ( isset ( self :: $ loaded [ __METHOD__ ] ) ) { return ; } self :: framework ( ) ; Asset :: script ( 'assets/validate.js' , true , true ) ; self :: $ loaded [ __METHOD__ ] = true ; }
Add unobtrusive javascript support for form validation.

To enable form validation the form tag must have class="form-validate".
Each field that needs to be validated needs to have class="validate".
Additional handlers can be added to the handler for username, password,
numeric and email. To use these add class="validate-email" and so on.

@return  void
Add unobtrusive javascript support for form validation .