How to use References in project?
2 posts
• Page 1 of 1
How to use References in project?
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?
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?
- talianderson.dias
- Posts: 1
- Joined: May 4th, 2018, 7:09 pm
Re: How to use References in project?
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!
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!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbeno │ miloslav@devsense.com
-
Miloslav Beno - Posts: 1252
- Joined: January 7th, 2012, 8:36 pm
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 40 guests