Including Magento blocks in a WordPress theme
Including Magento blocks in a WordPress theme is straight forward, however, the internationalisation feature of both systems gets in the way. An example
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
// File 1 - include_1.php function foo($a) { return $a*2; } // File 2 - include_2.php function foo($b) { return $b+9; } // File 3 - index.php include "include_1.php"; include "include_2.php"; |
File 3 would throw: Fatal error: Read More »