On Tuesday, June 17, 2014 7:43:25 PM UTC+12, Justin Harrison wrote:
HiCake 2.4I have a very strange problem and I am lost even though I have been working with Cake a number of years.I have an app that I am integrating with XERO (An online accounting app) using OAuth.Xero provided sample code https://github.com/XeroAPI/XeroOAuth-PHP that works fine on my server.I messed with the sample code and using their libraries created the attached Controller. I have a dev area on my server and it works fine there. The user is directed to xero puts in their credentials and comes back with data from xero.Cool. Demo to client, All good. Copy to production. No worky:(.I eventually worked out that the test server has DebugKit and debug flag on but not in production notice in my controller I can turn debug on in line 8. It works but this is not a good solution.With debugging and DebugKit disabled the session is lost when it returns from the Xero server but with it enabled it does not!?!!Does anyone have any suggestions on where I can start looking?Any help appreciated.
Solution ?!
I found that adding
var $components = array('Filter.Filter');
var $filters = array();
To the top of my ApiController class fixed it dont know how but it works now. I know that is not a neat solution but I'm out of time.
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment