google_forms/application/models/Frontend_model.php

15 lines
339 B
PHP

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Frontend_model extends CI_Model {
public function getforms(){
$query = $this->db->get("forms");
return $query->result();
}
public function deleteForm($id){
return $this->db->delete('forms', ['id' => $id]);
}
}