Error After Upgrade - Commits on Jun 2, 2018
After upgrade - Commits on Jun 2, 2018
Fatal error: Class 'Restserver\Libraries\CI_Controller' not found in ....\application\libraries\REST_Controller.php on line 22
I've already updated the composer
Same issue here... any ideas?
just add:
use CI_Controller;
at the begin of REST_Controller.php, after namespace
Message: Class 'Restserver\Libraries\REST_Controller' not found
OR
Message: Class 'Restserver\Libraries\Format' not found
If enabling : require APPPATH . 'libraries/REST_Controller.php';
Add: require APPPATH . 'libraries/Format.php';
Potential duplicate of #912
@chriskacerguis the switch to that isn't documented.
Both #912 and this one didn't solve anything. Can someone fix this, please?
after i use CI_Controller then "Class 'REST_Controller' not found " this error come
yeh same is here after i "use CI_Controller" in REST_Controller it gives error "Class REST_Controller Not Found". Any help please
Message: Class 'Restserver\Libraries\CI_Controller' not found Filename: libraries/REST_Controller.php Line Number: 22
Help me!!!! please
same issue here
in your controller api php make sure have this,
require APPPATH . '/libraries/REST_Controller.php';
use Restserver\Libraries\REST_Controller;
and then go to your Rest_Contreller and make sure you have this
use CI_Controller;
require APPPATH . 'libraries/Format.php';
Hope that answers your question
Add This thanks its works...
require(APPPATH.'/libraries/REST_Controller.php');
use Restserver\Libraries\REST_Controller;
use CI_Controller;
require APPPATH . 'libraries/Format.php';
Thanks @CreatorB your code is realy work
Still no luck
Fatal error: Class 'Restserver\Libraries\Format' not found in E:\web-service\application\libraries\REST_Controller.php on line 865
A PHP Error was encountered
Severity: Error
Message: Class 'Restserver\Libraries\Format' not found
Filename: libraries/REST_Controller.php
Line Number: 865
Backtrace:
Fatal error: Class 'Restserver\Libraries\Format' not found in E:\web-service\application\libraries\REST_Controller.php on line 865 A PHP Error was encountered Severity: Error Message: Class 'Restserver\Libraries\Format' not found Filename: libraries/REST_Controller.php Line Number: 865 Backtrace:
i have same error
i have problem. how to fix it??
`A PHP Error was encountered Severity: Compile Error
Message: Class Example cannot extend from trait Restserver\Libraries\REST_Controller
Filename: api/Example.php
Line Number: 22
Backtrace:`
i have problem. how to fix it??
`A PHP Error was encountered Severity: Compile Error
Message: Class Example cannot extend from trait Restserver\Libraries\REST_Controller
Filename: api/Example.php
Line Number: 22
Backtrace:`
same problem, please help me urgent
i have problem. how to fix it??
`A PHP Error was encountered Severity: Compile Error
Message: Class Example cannot extend from trait Restserver\Libraries\REST_Controller
Filename: api/Example.php
Line Number: 22
Backtrace:`
i did it too. and i have no solution..