Page 1 of 1

How to use References in project?

PostPosted: May 4th, 2018, 7:14 pm
by talianderson.dias
Hi,
how can I use References on project? I would like to use classes from one project in another project in the same solution using Php Tools. Could someone show me an example?

Re: How to use References in project?

PostPosted: May 7th, 2018, 9:39 am
by Miloslav Beno
Hello,

Thanks for the question.

Project references as we have them in the project system only works as hint for IntelliSense engine so it shows you the classes in the different project. Actual deployment on usage is up to the developer as we can't be sure what structure the project will have.

For example you can just use include or the project can be in form of composer package. Other option would be include_path setting or autoloading classes.

Please let me know if you'd have more questions about this.

Thanks!