Skip to content

Commit

Permalink
Add install magento snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
vsushkov committed Nov 26, 2012
1 parent 1b05b23 commit 3d25e54
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions snippets/php.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ snippet ai
$this->assertInstanceOf('${1:Class_Name}', $${2:object});${3}
snippet lf
@loadFixture
* @doNotIndexAll
@doNotIndexAll
snippet lsf
@loadSharedFixture
* @doNotIndexAll
Expand Down Expand Up @@ -184,19 +184,16 @@ snippet tdac
}

snippet here
echo 'Hi, I am ' . __METHOD__ . '(' . __LINE__ . ')'; echo '<br />';
snippet observe
public function ${1:methodName}(Varien_Event_Observer $observer)
{
echo 'Hi, I am ' . __FILE__ . '(' . __LINE__ . ')'; echo '<br />';
snippet install
$installer = $this;
$installer->startSetup();

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

$installer->endSetup();

0 comments on commit 3d25e54

Please sign in to comment.