Jump to content
MakeWebGames

Folder Structure


Zeggy

Recommended Posts

Just a reference to the folder structure for anybody who's confused while browsing the source online:

/

The root folder. You probably won't touch most of the files in here, except maybe config.php.

/Docs

The documentation folder. If you're not a developer, you can delete this folder. (I might exclude it from the download.) Otherwise you might need this as a reference to classes/functions in the engine.

/admin

Contains the admin modules. You might be installing admin modules in here if you're getting admin panel enhancements.

/lib

Contains files that ezRPG requires to run. Also contains the database drivers (just mysql at the moment). You probably won't do very much in here, but you might want to take a look at some of the classes to see how you can use them in coding modules.

/modules

The most important folder for a game owner. Every feature of your game has a sub-folder in here. If you are editing code, this is probably where you'll want to be.

/smarty/templates

Contains the template folders for modules. The admin subfolder in here is for admin template files.

/smarty/templates_c

Cached template files - they make your site go faster! :P

/static

This is where you can place your static files - files such as images, CSS files, font files, etc.

 

Only the root files, static files and admin/index.php files are ever actually viewed in the browser. If you want to move everything outside of your web root (which is more secure), this should be fairly easy. All you need to do is change the folder paths in init.php!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...