Changeset 1498 for trunk/modules/forge/libraries/Forge.php
- Timestamp:
- 12/12/2007 12:32:17 PM (13 months ago)
- Files:
-
- 1 modified
-
trunk/modules/forge/libraries/Forge.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/forge/libraries/Forge.php
r1461 r1498 15 15 protected $hidden = array(); 16 16 17 public function __construct($action = '', $title = '', $method = 'post')17 public function __construct($action = '', $title = '', $method = NULL, $class = NULL) 18 18 { 19 empty($method) and $method = 'post'; 20 empty($class) and $class = 'form'; 21 19 22 // Set action 20 23 $this->template['action'] = $action; … … 104 107 } 105 108 109 /** 110 * Creates the form HTML 111 * 112 * @param string form view template name 113 * @return string 114 */ 106 115 public function html($template = 'forge_template') 107 116 { … … 128 137 } 129 138 139 /** 140 * Returns the form HTML 141 */ 142 public function __toString() 143 { 144 return $this->html(); 145 } 146 130 147 } // End Forge
