I have a folder in magento root dir with a php script and want to run/output it in a block. What code is needed to run the script in a block?
1 Answer
You can try using include inside block's template.
- Can you give an example of the code needed?Bas– Bas2017-11-06 13:44:39 +00:00Commented Nov 6, 2017 at 13:44
- Inside .phtml: <?php include "path/to/external.php"; ?>Sinisa Colic– Sinisa Colic2017-11-06 13:47:48 +00:00Commented Nov 6, 2017 at 13:47