Hurricane
Hurricane

Reputation: 1

RESTful - CodeIgniter 3.1.5 - Fatal Error, Call to undefined function factory

I'm trying to make "RESTful" using CodeIgniter 3.1.5 and libraries https://github.com/chriskacerguis/codeigniter-restserver

I get this error:

Fatal error: Call to undefined factory function () in D:\AppServ\www\restful\application\libraries\REST_Controller.php on line 857
A PHP Error was encountered
Severity: Error
Message: Call to undefined function factory ()
Filename: libraries/REST_Controller.php
Line Number: 857
Backtrace:

Error Image

(Not my code, but it is example from codeigniter-restserver)

Upvotes: 0

Views: 735

Answers (1)

Eduard Zapata
Eduard Zapata

Reputation: 1

enter in line 61 of autoload.php

$autoload['libraries'] = array('database','Format'); 

I solved it that way.

Upvotes: 0

Related Questions