Stivni
Stivni

Reputation: 457

What's the difference between the CakePHP 2.x Plugin and plugins folders?

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...

Upvotes: 4

Views: 1038

Answers (1)

Barry Chapman
Barry Chapman

Reputation: 6780

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.

Upvotes: 6

Related Questions