PDT2: Source / Public folders, how do they work? [message #93881] |
Wed, 18 February 2009 11:27 |
Eclipse User |
|
|
|
Originally posted by: mnm.criion.net
Hi, I know Java and when src files are compiled the files are stored in
the public folder. Since php isn't compiled locally, what is the point
of having php projects set up this way?
-Michael
|
|
|
Re: PDT2: Source / Public folders, how do they work? [message #93896 is a reply to message #93881] |
Wed, 18 February 2009 14:10 |
Roy Ganor Messages: 149 Registered: July 2009 |
Senior Member |
|
|
This is a good question, I'll try to be short and explain why the PDT team
has decided to reuse the buildpath mechanism from Java.
on most projects (like in Java) there should be a logical separation
between applicative code (php code) and other external resources (images,
javascript, css, etc). Since it is a good practice to separate these two
kinds of resources to make your project more modular, there is a point in
marking a folder as source folder or as a resource folder. This separation
also helps to be make your code more modular and to reduce the overhead of
Eclipse that is scanning and parsing files to provide editing capabilities
(like code assist and other modeling stuff)
hope this helps,
Roy
Michael N. Madsen wrote:
> Hi, I know Java and when src files are compiled the files are stored in
> the public folder. Since php isn't compiled locally, what is the point
> of having php projects set up this way?
> -Michael
|
|
|
Re: PDT2: Source / Public folders, how do they work? [message #93911 is a reply to message #93896] |
Wed, 18 February 2009 21:21 |
Eclipse User |
|
|
|
Originally posted by: mnm.criion.net
So what happens when I want to publish the files?
I mean, at work we have all files on servers remotely hosted by some
professionals, so all our projects are accessed via rse.
Also we use typo3 or blob's so how can this structure work for dev. with
one set of folder tree and when live another?
I like the idea of cause, but I can't see how to use it in real life..
You are most welcome to give some examples if you like :)
-Michael
|
|
|
|
Powered by
FUDForum. Page generated in 0.03004 seconds