Changeset 276 for trunk/app/views/helpers
- Timestamp:
- 02/23/08 17:16:49 (11 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/helpers/gags.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/helpers/gags.php
r187 r276 10 10 11 11 public $initialized = false; 12 public $helpers = array('Html', 'Ajax' );12 public $helpers = array('Html', 'Ajax', 'Form'); 13 13 14 14 public function confirmDel($id, $controller) 15 15 { 16 16 17 $strB = $this->Html->formTag('/admin/'.$controller.'/delete/'.$id.'/', 'post', array("onsubmit"=>"return confirm('Are you sure to delete?')")); 18 $strB .= $this->Html->submit('Delete'); 19 $strB .= "</form>"; 17 $strB = $this->Form->create(null, array('action'=>'/admin/'.$controller.'/delete/'.$id, "onsubmit"=>"return confirm('Are you sure to delete?')")); 18 $strB .= $this->Form->end('Delete'); 20 19 21 20 return $strB; … … 25 24 { 26 25 27 $strB = $this->Html->formTag('/admin/'.$controller.'/edit/'.$id, 'post'); 28 $strB .= $this->Html->submit('Edit'); 29 $strB .= "</form>"; 26 $strB = $this->Form->create(null, array('action'=>'/admin/'.$controller.'/edit/'.$id)); 27 $strB .= $this->Form->end('Edit'); 30 28 31 29 return $strB;
