Include snippet 1.0.0-plReleased Mar 24, 2011 by unglued
This very simple but useful snippet for including external snippets and other external php files.Download 8kb (1743 downloads)
This very simple but useful snippet for including external snippets and other external php files.
All you need is folder core/snippets/ with your php code, for example mysnippet.php. Now you can call your snippet from anywhere on your site: [[include? &snippet=`mysnippet`]] (without ".php")
Also you can include any file from any other place in your site:
Install via Package Management. After that, you will find snippet "include" in left elements tree in snippets in "include" category. Create folder core/snippets/ and injoy!