Include snippet 1.0.0-pl

Include snippet 1.0.0-pl

Released Mar 24, 2011 by unglued

This very simple but useful snippet for including external snippets and other external php files.

Download 8kb (1743 downloads)
Downloads: 1,737
License: GPLv2
Requires Revolution 2.0.x or greater
Compatible up to Revolution 2.1.x
Supports mysql

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:

[[include? &file=`any/other/placr/mysnippet.php`]]

Installation Instructions

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!

Initial content