Topic: Include
Hi! I have one question....
How to include any php or other files into pages with this code ({include file="anyfile.php"})
Please answer. With snippet doesn't work.
You are not logged in. Please login or register.
Hi! I have one question....
How to include any php or other files into pages with this code ({include file="anyfile.php"})
Please answer. With snippet doesn't work.
admin panel -> Snippets -> Create new snippet
add code:
<?php echo "I love Monstra CMS"; ?>
Edite name: i love monstra cms
Press: save
Copy next to button Edite u have an arrow click on it and View Embed Code it will be this one:
FOR CONTENT!!!!!!!!!!!!!!!!!!!!!!!!
{snippet get="i-love-monstra-cms"}
FOR THEME OR ANY PHP FILES:
<?php echo Snippet::get("i-love-monstra-cms"); ?>
boom! magic, it works >_>