Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » PDT2: Source / Public folders, how do they work?
PDT2: Source / Public folders, how do they work? [message #93881] Wed, 18 February 2009 11:27 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Roy Ganor is currently offline Roy GanorFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: PDT2: Source / Public folders, how do they work? [message #94288 is a reply to message #93911] Thu, 19 February 2009 22:50 Go to previous message
exceptione is currently offline exceptioneFriend
Messages: 96
Registered: July 2009
Member
Michael N. Madsen schreef:

> You are most welcome to give some examples if you like :)
>

This has'n to do anything with source / public folders, imho.
Previous Topic:[Announce] PDT 2.0.1 M200902050834 is available
Next Topic:scrolling docblock
Goto Forum:
  


Current Time: Tue Dec 03 05:10:01 GMT 2024

Powered by FUDForum. Page generated in 0.05572 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top