Attempting to use poMMo and it uses a php include to embed in web page, the php example did not work, I tried to make it a snippet then called the snippet but that didn’t work either.
include(’/path to/pommo/embed.miniform.php’);
Try this one once and see if it helps, has worked fine for me since I found it...
copy this and make it a snippet:
# Snippet to include files from filesystem
# [[includefile? &file=`assets/templates/mytemplate/file.html`]]
if ( !isset($file) || $file== "" ) return "No file specified."; //check if there's a file given.
//Start the buffer
ob_start();
//include
include $file;
//get contents from the buffer
$ob_contents = ob_get_contents();
//and kill/delete the buffer
ob_end_clean();
//return it to MODx
return $ob_contents;