Last active
December 14, 2015 07:29
-
-
Save tim-peterson/5051116 to your computer and use it in GitHub Desktop.
pjax submit with codeigniter/php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Account extends CI_Controller { | |
.... | |
function login(){ | |
if($_POST){ | |
$status=$this->account_model->check_login(); | |
if($status){ | |
$this->output->set_header('X-PJAX-URL: http://localhost/library'); | |
$this->output->set_header('Location: ' . site_url('library'), false); | |
//redirect('library'); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment