Changeset 1459
- Timestamp:
- 12/07/2007 05:52:02 PM (13 months ago)
- Location:
- trunk/modules/forge/libraries
- Files:
-
- 1 removed
- 1 modified
-
Forge.php (modified) (3 diffs)
-
Form_Hidden.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/forge/libraries/Forge.php
r1438 r1459 13 13 14 14 protected $inputs = array(); 15 protected $hidden = array(); 15 16 16 17 public function __construct($action = '', $title = '', $method = 'post') … … 31 32 public function __call($method, $args) 32 33 { 34 if ($method == 'hidden') 35 { 36 $this->hidden[$args[0]] = $args[1]; 37 return; 38 } 33 39 // Class name 34 40 $input = 'Form_'.ucfirst($method); … … 90 96 91 97 // 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); 93 99 $form->close = form::close(); 94 100
