I was going through this documentation
I was just trying to get a simple blank module to work so i can start creating it. It was displaying fine from the backend and displayed another tab in the top CMS menu. But being logged out i get the "Website Error - There has been an error...". When I remove the folder from the directory the site works fine. Any Ideas what I might be doing wrong? Or what's some pointers to get it to work?
Where can I place that code? Also that may fix it temporarily, but i was wondering there were any key things to include when creating a module. I looked through the code in the blog and the userforms modules to see what I could be missing. Not sure why it works when im logged in, but when im logged out, it doesn't work