예제 #1
0
 public function save(\Models\VenueModel $venue)
 {
     $query = 'INSERT INTO venues (name, address) VALUES (?, ?)';
     $param = [$venue->getName(), $venue->getAddress()];
     $this->db->query($query, $param);
     return $this->db->row();
 }