Socialengine Tutorial – Including files within your modules, widgets and plugins within externals

When you develop modules or widgets you may wish to also include files such as images or javascript files etc. However rather then making the user drag and drop files into various locations you can actually place the files you wish to include within your module inside the ‘externals’ folder.

This folder then needs a .htaccess file which specifies allow all access to the folder. So take your ‘helloworld.png’ and place it inside here;

application/modules/YOUR MODULE NAME/externals/images/

Not forgetting to include create a file with the name .htaccess and placing it into;

application/modules/YOUR MODULE/externals/

.htaccess file content;

allow from all