ezrpg-legacy / ezrpg-2.0.X-discontinued-

http://ezrpgproject.net
Other
6 stars 0 forks source link

(Vote) Directory Structure #10

Closed ghost closed 11 years ago

ghost commented 11 years ago

From this issue (https://github.com/uaktags/Rework-Revisited/issues/7) I have collected our ideas and combined with my own, I propose the following suggestion on our directory structure.

The namespace App should be used for our models, modules, etc. This is because "App" is a generalized name of an application and I feel the ezRPG namespace belong as for the core library files. Games written in ezRPG is an application not part of the ezRPG Framework, they are using ezRPG not developing "for" it.

app/
..models/
..modules/
  ..modules/module_name/
  ..modules/module_name/assets/*
..templates/
  ..templates/theme_name/
  ..templates/theme_name/assets/*
  ..templates/theme_name/template/*
..lib/
  ..ezRPG/
..hooks/

public/
..img/
..js/
  ..js/lib/
  ..js/lib/library_name/*
..css/
  ..css/ext/*

Vote:

  1. Change the namespace. (Yes/No - Why?)
  2. The directory structure proposal above. (Yes/No - Why?)

These are two individual, agreeing with one doesn't mean you agree to both.

2013-05-26 will end in 7 days.

ferdis commented 11 years ago

My proposal, in full:

Library/
  Router.php
  Model.php
  Model/
    Player.php
    Player/
      Stats.php
  App.php
  View.php
  Autoloader.php
  Config.php
  Plugin.php
  Plugin/
    SomePlugin.php

Module/
  ModuleName/
    assets/

Theme/
  default/
    assets/ (images, js, css)
    login.phtml (fallback)
    index.phtml
  usertheme/
    assets/
    index.phtml

public/ (unless namspaced, lc)
  img/
  js/
    lib/
      ext/
  css/
    ext/

config.php
JakeBooher commented 11 years ago

My vote goes for nand's

uaktags commented 11 years ago

My vote is for nand's as well.