Skip to content

Instantly share code, notes, and snippets.

@SocalNick
SocalNick / gist:1935753
Created February 28, 2012 22:36
How to use HeadLinkLess view helper
<?php
$view->plugin('headLinkLess')->appendStylesheetLess($basePath . '/css/less/bootstrap.less');
@SocalNick
SocalNick / debug.php
Created September 27, 2011 18:37
Handy debug_backtrace function for PHP
function my_debug_backtrace() {
$backtrace = debug_backtrace();
$function = create_function('$a,$b','print "{$a[\'function\']}()(".$a[\'file\'].":{$a[\'line\']});\n";');
array_walk($backtrace, $function);
}
@SocalNick
SocalNick / local.xml
Created April 6, 2011 22:58
local.xml for Heather
<checkout_onepage_index>
<remove name="customerbalance" />
<reference name="checkout.onepage.payment">
<block type="core/template" name="checkout.onepage.payment.additional" as="additional" />
<block type="core/template" name="checkout.onepage.payment.methods_additional" as="methods_additional">
<block type="enterprise_customerbalance/checkout_onepage_payment_additional" template="customerbalance/checkout/onepage/payment/additional.phtml" name="hellopod.customerbalance" />
</block>
</reference>
</checkout_onepage_index>