Changeset 1472
- Timestamp:
- 12/09/2007 12:01:31 AM (13 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 modified
-
modules/forge/controllers/forge_demo.php (modified) (2 diffs)
-
modules/forge/libraries/Form_Dateselect.php (modified) (1 diff)
-
modules/forge/models (added)
-
modules/forge/models/user_edit.php (added)
-
system/libraries/Naked_Woman.php (modified) (1 diff)
-
system/libraries/ORM.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/forge/controllers/forge_demo.php
r1465 r1472 30 30 $form->submit('Save'); 31 31 32 echo Kohana::debug(headers_list());exit; 33 32 34 if ($form->validate()) 33 35 { … … 36 38 37 39 echo $form->html(); 40 } 41 42 public function edit_user($id = FALSE) 43 { 44 $profiler = new Profiler; 45 46 $form = new User_Edit_Model(NULL, 'Edit User', $id); 47 48 if ($form->save()) 49 { 50 echo Kohana::debug('user edited!', $form->as_array()); 51 } 52 else 53 { 54 echo $form; 55 } 38 56 } 39 57 -
trunk/modules/forge/libraries/Form_Dateselect.php
r1465 r1472 79 79 else 80 80 { 81 // Minute(s), Hour(s), etc81 // minute(s), hour(s), etc 82 82 $type .= 's'; 83 83 -
trunk/system/libraries/Naked_Woman.php
r1460 r1472 17 17 ( 18 18 'cash::generate(), plz?', 19 'There are no naked women or cash generators in Kohana. Sorry .'19 'There are no naked women or cash generators in Kohana. Sorry! ;)' 20 20 ); 21 21 } -
trunk/system/libraries/ORM.php
r1437 r1472 66 66 67 67 // Fetch table name 68 $this->class = strtolower(substr(get_class($this), 0, -6));69 $this->table = inflector::plural($this->class);68 empty($this->class) and $this->class = strtolower(substr(get_class($this), 0, -6)); 69 empty($this->table) and $this->table = inflector::plural($this->class); 70 70 71 71 if (empty(self::$fields[$this->table]))
