This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my_debug_backtrace() { | |
$backtrace = debug_backtrace(); | |
$function = create_function('$a,$b','print "{$a[\'function\']}()(".$a[\'file\'].":{$a[\'line\']});\n";'); | |
array_walk($backtrace, $function); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$view->plugin('headLinkLess')->appendStylesheetLess($basePath . '/css/less/bootstrap.less'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return array( | |
'di' => array( | |
'definition' => array( | |
'class' => array( | |
'Zend\Cache\StorageFactory' => array( | |
'methods' => array( | |
'factory' => array( | |
'cfg' => array( | |
'required' => true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application { | |
abstract class Page { | |
public $blocks; | |
public function addBlock(Block $block){ | |
$this->blocks[] = $block; | |
} | |
} | |
class FancyPage extends Page{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function parseValue($value) | |
{ | |
$directives = array(); | |
$lastPosition = 0; | |
$array = str_split($value); | |
while (false !== ($token = tokenizer($value, $array, ', ', $lastPosition))) { | |
$directive = explode('=', trim($token)); | |
if (false === $directive) { | |
throw new Exception('Invalid header line for Cache-Control string: "' . $value . '"'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function parse($string) | |
{ | |
$string = trim($string); | |
$directives = array(); | |
// handle empty string early so we don't need a separate start state | |
if ($string == '') { | |
return $directives; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function parseCacheControl($header) | |
{ | |
$cacheControl = array(); | |
preg_match_all('#([a-zA-Z][a-zA-Z_-]*)\s*(?:=(?:"([^"]*)"|([^ \t",;]*)))?#', $header, $matches, PREG_SET_ORDER); | |
foreach ($matches as $match) { | |
$cacheControl[strtolower($match[1])] = isset($match[2]) && $match[2] ? $match[2] : (isset($match[3]) ? $match[3] : true); | |
} | |
return $cacheControl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return | |
array( | |
'modules' => array( | |
'Application', | |
), | |
'module_listener_options' => array( | |
'config_cache_enabled' => true, | |
'cache_dir' => 'data/cache', | |
'config_cache_key' => 'app-cache-key', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Ign\View\Strategy; | |
use Zend\EventManager\EventCollection, | |
Zend\EventManager\ListenerAggregate, | |
Zend\Feed\Writer\Feed, | |
Zend\Mvc\MvcEvent, | |
Zend\View\Renderer\FeedRenderer, | |
Zend\View\Renderer\JsonRenderer, | |
Zend\View\Renderer\PhpRenderer, |
OlderNewer