Re: [fw-general] Re: Refactoring towards ZF2 (subfolders)

2014-03-04 Thread Stefano Torresi
Well, since your application is not a module yet, you could just store your classes under a root 'src' directory and then follow PSR-0 or PSR-4 structure. I would also strongly suggest to introduce a consistent vendor prefix namespace (which I kept myself from doing systematically and am now regret

[fw-general] Re: Refactoring towards ZF2 (subfolders)

2014-03-04 Thread dennis-fedco
Thanks, well that's better. I was going by ZF2 Module Structure ( http://framework.zend.com/manual/2.2/en/modules/zend.mvc.intro.html .) Right now, other developers will hate me for having to refer to my class like this: "./m

Re: [fw-general] Refactoring towards ZF2 (subfolders)

2014-03-04 Thread Ben Scholzen 'DASPRiD'
On 04.03.2014 16:39, dennis-fedco wrote: > Is there indeed the need for all these sub=folders? Not at all, you could put all files without any folder structure in module/DeviceModule (seriously, just call it Device, not DeviceModule). Although most likely other developers will then hate you for ha

[fw-general] Refactoring towards ZF2 (subfolders)

2014-03-04 Thread dennis-fedco
I have an application where all its classes are in folder called ./class. So, for example, I would have ./class/Device.php to host my class, because: 1) class folder holds my application's classes. It is good to separate my classes from everything else 2) name of my class is there to differenti