Show
Ignore:
Timestamp:
03/03/08 21:41:31 (10 months ago)
Author:
aarkerio
Message:

Update monday 3 march

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/helpers/gags.php

    r276 r301  
    1212   public  $helpers = array('Html', 'Ajax', 'Form'); 
    1313    
    14    public function confirmDel($id, $controller)  
     14   public function confirmDel($id, $model)  
    1515   { 
    1616         
    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?')")); 
    1818        $strB .= $this->Form->end('Delete'); 
    1919         
     
    2121   } 
    2222    
    23    public function sendEdit($id, $controller)  
     23   public function sendEdit($id, $model)  
    2424   { 
    2525         
    26         $strB  = $this->Form->create(null, array('action'=>'/admin/'.$controller.'/edit/'.$id)); 
     26        $strB  = $this->Form->create($model, array('action'=>'admin_edit/'.$id)); 
    2727        $strB .= $this->Form->end('Edit'); 
    2828