Sinnvolle Ordnerstruktur

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Sinnvolle Ordnerstruktur

    Hallo,

    Ich bin grade dabei nen größeres Projekt zu starten und denke über eine sinnvolle Ordnerstruktur Klasse, Includes, Seitenbilder, templates, userbilder etc. nach. Wie sieht das bei euch aus? Wie ist das bei euch, welche Dateien liegen unter dem aufrufbaren Bereich etc.

    Gruß,
    thebrain
    nein?

  • #2
    standardordner
    - index.php
    - foo1.php
    - foo2.php
    -- includes
    --- mysql.php
    --- functions.php
    --- sonstiges.php
    -- pics
    --- bilder_halt.jpg
    --- noch_mehr_bilder.jpg
    [color=black] Important: alt bei <img> ist immer erforderlich · Strings richtig trennen/verbinden · Kiddie-Code hat keine Chance[/color]

    Kommentar


    • #3
      Is bei mir eigentlich von Projekt zu Projekt verschieden, aber grundsätzlich immer ungefähr so:

      root

      - index.php

      / includes
      -- header.inc.php
      -- footer.inc.php
      -- classes.inc.php
      -- mysql.inc.php
      -- config.inc.php / connection.inc.php
      -- functions.inc.php

      / templates
      -- main.tpl
      -- index.tpl
      -- stylesheet.css
      -- javascript.js

      / images
      -- logo.jpg

      / stuff
      -- irgendwas.ext

      / irgend ein verzeichnis für den admin bereich

      Kommentar


      • #4
        Hy Guys,
        A sensible folder structure really comes down to clarity and consistency. Naming things in a way that actually reflects what’s inside makes a huge difference, especially when projects grow over time. I’ve noticed that grouping by purpose rather than type often keeps things cleaner and easier to scale. Interestingly, the same idea applies outside development too. Even browsing something like https://apricocia.com, you can see how well-organized categories and clear structure make everything feel smoother and more intuitive for users. That kind of thoughtful organization always pays off in the long run.

        Kommentar

        Lädt...
        X