function initialize() { parent::initialize(); $id = $this->dispatcher->getParam("id"); $this->paste = Paste::findFirstById($id, array('cache' => array('lifetime' => 3600, 'key' => $id))); if (!$this->paste) { return $this->dispatcher->forward(array('controller' => 'error', 'action' => 'e404')); } }