Fixes for userguide, added url_resolve to Table()

This commit is contained in:
Deon George
2013-11-08 22:26:58 +11:00
parent 45cadf0945
commit c014a4cec8
3 changed files with 23 additions and 6 deletions

View File

@@ -97,5 +97,9 @@ abstract class lnApp_Form extends Kohana_Form {
return sprintf(static::_controlgroup($name,$attributes),parent::textarea($name,$body,$attributes,$double_encode));
}
public static function textarea_rows($textarea,$min=10,$char="\n") {
return ($x=count(explode($char,$textarea))) < $min ? $min : $x;
}
}
?>