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.

Werasu's Website

Re: Include

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 >_>

(с) Roman Art
So far So good wink

RomanArt's Website

Re: Include

Thank you RomanArt

Werasu's Website