[Solved] Problem With Autoloader
Posted 05 March 2013 - 10:24 PM
Both applications run in the same machine.
The problem is that after the REST call, Yii try to autoload the classes of the other application.
Can you help me ?
Posted 06 March 2013 - 04:04 AM
I think you should disable Yii autoloader with
and after then you loaded the external code, you should reenable the autoloader with
This article explain this mechanism.
What REST system are you using?
Posted 06 March 2013 - 09:19 AM
I was using
but i found that the problem was in the result of the REST call. The result is an array with some objects inside.
The objects belong the the other application and Yii was trying to load the objects classes. I change the results only to arrays and now it works.
The other application is an internal application created with PHP without any framework. It have some webservices (SOAP and REST ) and i use CURL on Yii the make the REST calls.