Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Output JSON response if AJAX request
- if ($this->request->is_ajax())
- {
- $json = json_encode(
- array(
- 'success' => 'true',
- 'message' => $msg
- )
- );
- return $this->response->body($json);
- }
- // Redirect to contact page
- $this->request->redirect('contact');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement