but why are you doing that statically?
if anything it should be
$this->response->expires()
Am Donnerstag, 25. Oktober 2012 12:11:10 UTC+2 schrieb gimmebucks:
anyone?
On Monday, 22 October 2012 17:15:10 UTC+8, gimmebucks wrote:I'm using cake 2.2.2 and trying to set expires headers.in my AppController.phppublic function beforeRender(){
CakeResponse::expires(new DateTime('+5 day'));
}but i got this errorFatal error: Call to undefined method CakeErrorController::_getUTCDate() in F:\www\mail-us\lib\Cake\Network\CakeResponse.php on line 858please help.p/s : i'm trying this on individual action but got the same error.
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
No comments:
Post a Comment