gallery3 kohana layout question

vastv

Joined: 2009-11-16
Posts: 2
Posted: Mon, 2009-11-16 19:10

I have a quick questions about the layout of the code in gallery3.

Is there a reason for not having any controllers inside application/controllers structure?

For example the core controllers seem to reside in modules/gallery instead.

Thanks.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7934
Posted: Tue, 2009-11-17 17:59

Yep, there's a reason for it :-)

In our current layout the Kohana application is a shell around the modules. This means that if you have your own Kohana application, you can (with some minimal effort) embed the set of Gallery modules directly into your existing Kohana application as Kohana modules. If we put all the controllers, etc into the application directory then you would not be able to do that. We originally had it all in application and restructured it specifically to get this benefit.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
vastv

Joined: 2009-11-16
Posts: 2
Posted: Tue, 2009-11-17 18:56

Great, thanks for the reply. Makes sense now.