Organization of directories in the Silex framework

1

Someone knows some link to start with this microframework, I searched but only think in English and is not complete, only shows the install part. I'm having difficulty setting up the folder structure: controllers, models.

My structure:

vendor
->(...)versão fat
web
->index.php
->views/
-->base.twig
-->index.twig

I was able to call views by twig so far, who can help me thank you. Thanks!

    
asked by anonymous 26.03.2015 / 15:35

1 answer

1

Silex does not require any directory structure, you are free to use what you like best, which is most suitable for the project. If on the one hand this freedom is good (Silex does not impose anything that does not look natural in the project), it is also bad (Silex does not induce you to organize your project well).

So it's up to you to decide how to organize the directories. I found an interesting article on the subject , with a suggestion of organization. If you know English, that's a good read.

    
26.03.2015 / 17:08