Tuesday, July 3, 2012

Is there a way to override CakeRequest.php (and for that matter any other Lib file) at the App level?

My web hosting in on a load balanced server, which means that HTTPS cannot be detected in the usual way. My host includes a custom header which allows detection of HTTPS.

This means that the CakePHP request->isSSL() functionality does not work out of the box.

I can fix this easily in Lib/Cake/Network/CakeRequest.php - however, I know it is bad practice to modify files in Lib as changes will be overridden if CakePHP is upgraded.

Is there a way to override CakeRequest (and for that matter any other Lib file) at the App level?

Thanks,

Tom

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: