public function reject_quote($quote_url_key) { $this->load->model('quotes/mdl_quotes'); $this->load->helper('mailer'); $this->mdl_quotes->reject_quote_by_key($quote_url_key); email_quote_status($this->mdl_quotes->where('ip_quotes.quote_url_key', $quote_url_key)->get()->row()->quote_id, "rejected"); redirect('guest/view/quote/' . $quote_url_key); }
public function reject($quote_id) { $this->load->model('quotes/mdl_quotes'); $this->load->helper('mailer'); $this->mdl_quotes->reject_quote_by_id($quote_id); email_quote_status($quote_id, "rejected"); redirect_to('guest/quotes'); }