Welcome Guest, Not a member yet? Register   Sign In
How to return a view to an ajax call ?
#5

(This post was last modified: 03-01-2015, 10:58 AM by spjonez.)

Store it using a key so it's valid JSON:
Code:
$result = array(
    'view' => $this->load->view( 'theview', $data, true ),
);

$this->output->set_output( json_encode( $result ) );
Reply


Messages In This Thread
RE: How to return a view to an ajax call ? - by spjonez - 03-01-2015, 10:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB