N
N
nurise2014-03-03 16:05:51
CMS
nurise, 2014-03-03 16:05:51

Which file structure to choose for your CMS?

Yes, I want to make my bike. Design pattern - factory.
What file structure would be correct?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-03-03
@nurise

Would you at least describe what the factory has to do with it, what will it generate for you? If I understand correctly, it will be something like a response factory (see the HttpKernel component ),
but in general the project structure is usually this:
- web (contains directories with uploaded files, assets, application entry point, etc.)
- src - sources, here you need to reveal what you mean by a factory in the context of cms. And as you were told above, use the PSR-4 standard to organize sources
- vendor - third-party dependencies, it is advisable to use composer
- var - temporary files created during system operation, such as cache, logs, etc.
You also need a directory for templates, etc. You also need to store the config somewhere...
ps Look at the already existing solutions, cms that have appeared over the past couple of years ( bolt for example). Or do what you want and then redo it.

G
Grigory Peretyaka, 2014-03-03
@Peretyaka

There is a PSR (PHP Specification Request) for PHP:
pettermoulding.com/php/psr
I think it's better to stick to the SP standards.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question