Changeset 1447

Show
Ignore:
Timestamp:
12/07/2007 01:58:09 PM (10 months ago)
Author:
Shadowhand
Message:

Changes to Forge:

  • label() does ucwords with humanize
  • Form_Address added
  • added i18n files back in, with the purpose of being input text helpers
Location:
trunk/modules/forge
Files:
4 added
1 modified

Legend:

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

    r1445 r1447  
    108108                else 
    109109                { 
    110                         $this->label = ($val === TRUE) ? inflector::humanize($this->name) : $val; 
     110                        $this->label = ($val === TRUE) ? ucwords(inflector::humanize($this->name)) : $val; 
    111111                        return $this; 
    112112                } 
     
    215215                if ($value = self::$input->post($this->name)) 
    216216                { 
     217                        // Load POSTed value 
    217218                        $this->data['value'] = $value; 
     219                } 
     220 
     221                if (is_string($this->data['value'])) 
     222                { 
     223                        // Trim string values 
     224                        $this->data['value'] = trim($this->data['value']); 
    218225                } 
    219226        }