Changeset 20681 for websites

Show
Ignore:
Timestamp:
10/04/08 16:07:05 (2 months ago)
Author:
ha1t
Message:

added events/delete

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • websites/events.php.gr.jp/trunk/app/controllers/events_controller.php

    r20677 r20681  
    256256        } 
    257257 
     258   } 
     259 
     260    /** 
     261     * delete 
     262     * 
     263     */ 
     264    public function delete($id) 
     265    { 
     266        if (!$this->isAdmin()) { 
     267            $this->redirect('/'); 
     268        } 
     269 
     270        $this->Event->del($id); 
     271 
     272        $this->redirect('/events/control'); 
    258273    } 
    259274