Changeset 1459

Show
Ignore:
Timestamp:
12/07/2007 05:52:02 PM (13 months ago)
Author:
zombor
Message:

New Hidden support

Location:
trunk/modules/forge/libraries
Files:
1 removed
1 modified

Legend:

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

    r1438 r1459  
    1313 
    1414        protected $inputs = array(); 
     15        protected $hidden = array(); 
    1516 
    1617        public function __construct($action = '', $title = '', $method = 'post') 
     
    3132        public function __call($method, $args) 
    3233        { 
     34                if ($method == 'hidden') 
     35                { 
     36                        $this->hidden[$args[0]] = $args[1]; 
     37                        return; 
     38                } 
    3339                // Class name 
    3440                $input = 'Form_'.ucfirst($method); 
     
    9096 
    9197                // Set the form open and close 
    92                 $form->open  = form::open($form->action); 
     98                $form->open  = form::open($form->action, array('method' => 'post'), $this->hidden); 
    9399                $form->close = form::close(); 
    94100