Show
Ignore:
Timestamp:
02/23/08 17:16:49 (11 months ago)
Author:
aarkerio
Message:

Upgrade to 1.2

Files:
1 modified

Legend:

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

    r187 r276  
    1010   
    1111   public  $initialized = false; 
    12    public  $helpers = array('Html', 'Ajax'); 
     12   public  $helpers = array('Html', 'Ajax', 'Form'); 
    1313    
    1414   public function confirmDel($id, $controller)  
    1515   { 
    1616         
    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'); 
    2019         
    2120        return $strB; 
     
    2524   { 
    2625         
    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'); 
    3028         
    3129        return $strB;