Skip to content

Instantly share code, notes, and snippets.

@tim-peterson
Last active December 14, 2015 07:29
Show Gist options
  • Save tim-peterson/5051116 to your computer and use it in GitHub Desktop.
Save tim-peterson/5051116 to your computer and use it in GitHub Desktop.
pjax submit with codeigniter/php
<?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