Changeset 301 for trunk/app/views/helpers
- Timestamp:
- 03/03/08 21:41:31 (10 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/helpers/gags.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/helpers/gags.php
r276 r301 12 12 public $helpers = array('Html', 'Ajax', 'Form'); 13 13 14 public function confirmDel($id, $ controller)14 public function confirmDel($id, $model) 15 15 { 16 16 17 $strB = $this->Form->create( null, array('action'=>'/admin/'.$controller.'/delete/'.$id, "onsubmit"=>"return confirm('Are you sure to delete?')"));17 $strB = $this->Form->create($model, array('action'=>'/admin_delete/'.$id, "onsubmit"=>"return confirm('Are you sure to delete?')")); 18 18 $strB .= $this->Form->end('Delete'); 19 19 … … 21 21 } 22 22 23 public function sendEdit($id, $ controller)23 public function sendEdit($id, $model) 24 24 { 25 25 26 $strB = $this->Form->create( null, array('action'=>'/admin/'.$controller.'/edit/'.$id));26 $strB = $this->Form->create($model, array('action'=>'admin_edit/'.$id)); 27 27 $strB .= $this->Form->end('Edit'); 28 28
