Question

From CakePHP 2.0 on, the folder structure is like this:

-- MyApplicationName
--- app
---- Plugin
---- (other folders ...)
--- lib
--- plugins
--- vendors

Is there any difference between the Plugin-folder within the app-folder or the plugins-folder within the application root folder?

What's the recommended use of those folders? Or can you use them as you wish?

Sorry if this is a recurrent question, but a quick search didn't provide me any similar questions...

Was it helpful?

Solution

I do not believe it matters. I think the main reason that there was a folder outside the app folder, was so that it could be shared among different sites (like the core files).

So, use your own discretion.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top