Created
February 13, 2013 15:04
-
-
Save BlackScorp/4945209 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class Form extends Kohana_Form{ | |
public static function input($name, $value = NULL, array $attributes = NULL) | |
{ | |
if ( ! isset($attributes['id'])) | |
{ | |
// Default type is text | |
$attributes['id'] = $name; | |
} | |
return parent::input($name,$value,$attributes); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment