[eluser]TheFuzzy0ne[/eluser]
Sorry, I got that slightly wrong. It should be:
Code:
http.open('get', 'index.php/event/getRecord/' + stateid + '/' + userId);
So you controller would be something like this:
event.php
Code:
class Event extends Controller {
function index()
{
// ...
}
function getRecord()
{
// Load the URI library
$this->load->library('uri');
// Set the vars.
$state_id = $this->uri->segment(0);
$user_id = $this->uri->segment(1);
// Do stuff here.
}
}
I'm not sure if I got the segments right, but hopefully you get the point.