Advertisement
Guest User

Untitled

a guest
Jun 18th, 2011
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. $response = new Response();
  2. $response->setPublic();
  3.  
  4. $response->setETag(md5($data->getId()));
  5.  
  6. if ($response->isNotModified($this->get('request'))) {
  7. return $response;
  8. }
  9.  
  10. return $this->render('MyBundle:MyController:action.html.twig',
  11. array('data' => $data), $response);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement