Skip to content

Commit

Permalink
Add adminaction Magento snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
vsushkov committed Nov 22, 2012
1 parent 510d2a1 commit 06dfe9f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions snippets/php.snippets
Expand Up @@ -190,3 +190,13 @@ snippet observe
{ {


} }
snippet adminaction
public function ${1:some}Action()
{
try {
${2}
} catch (Exception $e) {
$this->_getSession()->addError($e->getMessage());
}
$this->_redirectReferer();
}

0 comments on commit 06dfe9f

Please sign in to comment.