[eluser]ortenheim[/eluser]
Yes i am using phils example.
i am not sure what you mean by making it to an array..thats what it is already since i get it from my model? and by putting it as force loopable, where is this done? tried it in my controller like so:
Code:
function visitors_get()
{
$this->load->model('Visitor_model');
$visitors = $this->Visitor_model->get_all();
$visitors = $this->_force_loopable($visitors);
if($visitors)
{
$this->response($visitors, 200); // 200 being the HTTP response code
}
else
{
$this->response(NULL, 404);
}
}
but i get blank screen instead of previous error.