Example #1
0
 /**
  * Metodi poistaa tietokannasta luokan id:n perusteella
  * 
  * @param type $id  luokan id
  */
 public static function destroyCategory($id)
 {
     Category::destroyById($id);
     Redirect::to('/category', array('message' => 'Luokka poistettu onnistuneesti.'));
 }