The Slim Framework support forum has moved to http://discourse.slimframework.com. This Tender forum is no longer maintained or monitored.

Slim's directory structure

carlmungazi's Avatar

carlmungazi

12 Oct, 2015 09:40 PM

Hello,

I am creating a simple web app so I can to practice my CSS skills (and possibly some Javascript & PHP) by recreating the designs of popular sites without looking at the source code.

I decided to use the slimPHP framework after going through the tutorial at teamtreehouse.com (http://teamtreehouse.com/library/building-websites-with-php). I am trying to work out how to organise my file structure.

Currently, it is like this:

assets/
    *various files*
app.log
composer.json
composer.lock
index.php
js/
templates/
     *various files*
vendor/
     *various files*

I have seen other files structures at http://www.slimframework.com/2011/09/24/how-to-organize-a-large-sli... and https://github.com/briannesbitt/nesbot.com which look nothing like mine so I'm confused about the best practice.

This is my first time working with a framework.

Cheers,

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac