title: Structure for a MVC PHP application
body: <p>I am currently developing a php application using MVC techniques. I started it without thinking about a useful directory structure.<br>
  I'm planning to deploy the application to a apache2 server now. This is how it looks right now.<br>
  <img src="https://i.stack.imgur.com/bBHT5.png" alt="My current layout"></p>
  
  <p>I have a httpdocs folder on the server which is accessible from the web. If I copy all files into this directory some files might be accessible that shouldn't. The <code>public</code> folder contains the files that have to be accessible. (I might need to put my index.php there)</p>
  
  <p>My question is: What is the preferred layout for such an application? Should I put all folders except <code>public</code> in the parent folder of <code>httpdocs</code>?</p>
  
  <p>Thanks for your advices!</p>