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 | |
public function appendChild($source) | |
{ | |
/* This is the bug | |
If an element has no children, only text, but has one or more attributes this call will evaluate to TRUE when it should | |
evaluate to FALSE. | |
The solution is simple. Wrap $source->children() in a call to count() | |
if (count($source->children()) {... | |
Note: This bug still exists in Magento 2 at this time. |
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
/* | |
If you have a horizontal (or vertical) scroll container and want to set the scroll to center a specific | |
element in the container you can use the following super simple technique. | |
I'm going to show you how it was derived, because it's important to know why, not just how. | |
*/ | |
/* | |
Setup: | |
[HTML] | |
<div class="outer"> |
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
Edit /etc/phpmyadmin/config.inc.php | |
Add line: | |
$cfg['LeftDisplayTableFilterMinimum'] = 20; //Can be any integer. | |
Restart apache. |
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
<!-- | |
--Tim Reynolds (@razialx) 2012 - Do whatever you want license - | |
-- | |
--If you need to change the company logo on a specific page you can do this easily using | |
--Layout Update XML. On the CMS page editor in the Magento Admin, go to the Design tab | |
--on the left. There will be a large text area labeled 'Layout Update XML' | |
-- | |
--Insert the following XML into it. | |
-- | |
--This is using Layout actions to call the method setLogo(src,alt) on the Block class |