With the new unified resources folder it is very easy to access includes in RW.
Step 1: Create a folder called
resources in any known location, i.e. Desktop (Users/
username/Desktop/resources)
Step 2: Add the path to your include path in php.ini
Step 3: Drag your php code files names from the Desktop resources folder to RESOURCES in your RW project
Please note: In the code snippets each single quote should be a double quote
That is it. The include statement may look like
include '%resource(somename)%';
The code will be found in RW development environment, your localhost exported/published site and your web hosted site.
BTW, the top directory of your resources is
echo '%resource()%';
You can structure the resources into directories, For example, if I had Functions in my resources, I could include them like this
include '%resource(Functions/func1.php)%';