Show
Ignore:
Timestamp:
02/04/2008 07:00:18 PM (11 months ago)
Author:
PugFish
Message:

Added ability to use custom forms in Forge, rather than using a template which iterates over each input there is a variable for each input allowing more customisable forms.
Fixed valid_ rules not finding the i18n string.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/forge/libraries/Form_Input.php

    r1888 r1915  
    248248                                else 
    249249                                { 
     250                                        // Strip 'valid_' from func name 
     251                                        $func = (substr($func, 0, 6) === 'valid_') ? substr($func, 6) : $func; 
    250252                                        // Fetch an i18n error message 
    251253                                        $error = Kohana::lang('validation.'.$func, $args);