How to use References in project?

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

How to use References in project?

Postby talianderson.dias » May 4th, 2018, 7:14 pm

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?
talianderson.dias
 
Posts: 1
Joined: May 4th, 2018, 7:09 pm

Re: How to use References in project?

Postby Miloslav Beno » May 7th, 2018, 9:39 am

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!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1242
Joined: January 7th, 2012, 8:36 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 5 guests

User Control Panel

Login

Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 guests (based on users active over the past 5 minutes)
Most users ever online was 89 on October 15th, 2018, 4:06 pm

Users browsing this forum: No registered users and 5 guests
Phalanger