|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
osim Smarty n00b
Joined: 06 Oct 2004 Posts: 1 Location: Hannover
|
Posted: Wed Oct 06, 2004 9:26 am Post subject: Filesystem-Design ?? |
|
|
Hi *,
ich habe vor noch nicht langer Zeit angefangen, mich mit Smarty zu beschäftigen, da wir es für ein Projekt einsetzen möchten.
Was mir leider noch nicht so richtg klar ist, wie sollte man das Filesystem Layout, in Verbindung mit allen möglichen in php und html benötigten Formatierungsstyles usw anlegen ?
cache-dir, template-dir, template_c-dir, config-dir kommen aus dem Document Root raus, ok, und dann ?
Ich habe eine index.php wo alles beginnt. Da drin wird an entsprechender Stelle das zu benutzende tpl angegeben, in dem wiederum das Design für die Seite in html steht, und zusätzlich darin der Pfad zu den Stylesheets für die Seite und die Images .... urgs .. Und das jetzt alles in eine vernünftige, sinnvolle Verzeichnisstruktur bringen ... Wo sollten die Images abgelegt werden, wo die Stylesheets, ohne sich von hinten durch die Brust ins Auge zu verknüpfen oder auch noch durchzusteigen, wenn man mal einen Monat nicht an dem System gearbeitet hat ?
Hat jemand eine Idee oder einen Vorschlag, diese ganzen Dateien und Verknüpfungen sinnvoll zu ordnen ? Vor allem Lösungen css und images fände ich interessant...
...olli _________________ --------------------------------------------------------
"Will code html for food" (cit.) |
|
Back to top |
|
crashmakerMX Guest
|
Posted: Wed Oct 06, 2004 4:11 pm Post subject: |
|
|
das verzeichnislayout von MOPS:
/class Klassen
/cache Cache
/core Core Klassen
/config Config (das sind NICHT die smarty-configs)
/language Sprachdateien (das sind die smarty-configs)
/plugins Plugins für Core, Modules, Services, Smarty
/templates_c Compiled
/themes CSS & Style-abhängige Images
/modules/* Module
/modules/*/templates Templates
(eventuell noch:)
/images Allgemeine Bilder (smarty logo, blind gif, ...)
bei methodischen projekten (kein OOP) ist phpBB ein gutes beispiel, bei OOP halt MOPS oder auch XOOPS |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Wed Oct 06, 2004 4:30 pm Post subject: |
|
|
so in der art mach ich es meistens:
/html document-root
/html/images bilder
/html/css css
/php php-includes
/templates
/phptmp temporäres zeug
/phptmp/templates_c
/phptmp/cache
wenn du templates in einer wysiwyg-umgebung bearbeiten wills, dann setze einen softlink von templates/images nach html/images und einen von templates/css nach html/css |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|