Ok, ich bin neu und ich versuche ein echtes einfaches Projekt zu machen, nur um meine Fähigkeiten zu testen. Ich habe gerade dieses Schema im Kopf und ich weiß nicht wirklich, ob es ein Muster oder etwas ist und ich möchte einige Vorschläge dazu bekommen und wie ich es verbessern kann.Ordnerschema in PHP
index.php # This manage the $_GET['page'] var and load some basic stuff
app/ # Here's the logic part, the pages included in index.php, they do some stuffs and then call templates to output the HTML page
config/ # Here we put some configurations file such as database.con.php or board.con.php which contain an extension or the array $cf
lang/ # Same way of configurations, we have something like en.lang.php or it.lang.php and inside there is an array called $lang
lib/class/ # Contains all the classes
lib/set/ # Contains sets of functions, such as error.set.php or file.set.php
theme/ # Contains template file that got called from app files
Wird ich mit diesem Schema festhalten? Gibt es etwas, das verbessert/verändert werden kann?
Aktualisierung der Profilschleife: 'while (true) {if (leer ($ bier)) {get_a_beer(); $ cm-> roll(); } Getränk ($ Bier); } ' – Ben
@Steve, überprüft meinen Code. Fügen Sie noch mehr coole Sachen hinzu. – Shoe