0

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 1

1

You can try using include inside block's template.

2
  • Can you give an example of the code needed? Commented Nov 6, 2017 at 13:44
  • Inside .phtml: <?php include "path/to/external.php"; ?> Commented Nov 6, 2017 at 13:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.