Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Filesystem-Design ??

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German
View previous topic :: View next topic  
Author Message
osim
Smarty n00b


Joined: 06 Oct 2004
Posts: 1
Location: Hannover

PostPosted: Wed Oct 06, 2004 9:26 am    Post subject: Filesystem-Design ?? Reply with quote

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
View user's profile Send private message
crashmakerMX
Guest





PostPosted: Wed Oct 06, 2004 4:11 pm    Post subject: Reply with quote

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

PostPosted: Wed Oct 06, 2004 4:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP