Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » How to include workspcace project folder in run URLs in Ecplise for PHP?
How to include workspcace project folder in run URLs in Ecplise for PHP? [message #1838665] Wed, 03 March 2021 09:12
Peter Hunkeler is currently offline Peter HunkelerFriend
Messages: 5
Registered: March 2021
Junior Member
I'm starting Joomla Extension development, and am following the guides on joomla.org. One of which describes how to install and prepare Eclipse for this purpose. The description seems to be somewhat aged, and I'm having a problem with run configurations as described there (see [1]) . So it's an Ecplise rather than a Joomla question], I guess.

I have downloaded the current Eclipse release 2020_12 and have selected "Eclipse IDE for PHP Developers" while installing it.

I already have a working XAMPP installation on my Windows 10 machine at D:\xampp. As suggested by the Joomla guide, I created the Eclipse workspace at D:\xampp\htdocs\joomla_development. Next, I created a first PHP project and file, named Test_Debug, and Test1.php, resp..

The Joomla guide suggests that no furhter configuration is needed to run the Test1.php file with the (xampp) Apache as server. However, Eclipse does not automatically include the project folder (joomla_development) in the URL, thus Apache cannot find the Test1.php file.

When I choose to run the file (Ctrl-F11) and then select PHP Web appplication from the dialog, I'm prompted for the Launch URL, and Eclipse has prepared
the URL as:
http://localhost/Test_Debug/Test1.php


I'd rather have Eclipse to build the URL as::
http://localhost/joomla_development/Test_Debug/Test1.php


I haven't found where, on a project level, I can set this, so that Eclipse will automatically include the project folder in the URL whenever I run a file. I would rather not have to manually type part of the directory structrure in each run configuration. So, is there a way to achieve this?


[1] https: // docs.joomla.org/Configuring_Eclipse_for_joomla_development
(Note that there is a space before and after the //. This is because I'm not allowed to inlcude links to external sites, since this is my first post.)


--
Peter
Previous Topic:Font in JavaScript Editor in Eclipse PDT 2020-012 (4.18.0)
Next Topic:XDebug doesn't work properly
Goto Forum:
  


Current Time: Sun Dec 08 04:13:38 GMT 2024

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

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

Back to the top