Skip to content

Instantly share code, notes, and snippets.

@handlename
Created September 21, 2010 10:50
Show Gist options
  • Save handlename/589531 to your computer and use it in GitHub Desktop.
Save handlename/589531 to your computer and use it in GitHub Desktop.
<?php
class sharedActions extends sfActions
{
/*
* エラーレスポンス
*
* @param sfWebRequest $request
*/
public function executeError(sfWebRequest $request)
{
$this->data = $this->getUser()->getFlash('data');
$this->setTemplate('json'); // jsonSuccess.php
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment