|How to include workspcace project folder in run URLs in Ecplise for PHP? [message #1838665]
||Wed, 03 March 2021 09:12
| Peter Hunkeler
Registered: March 2021
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 ) . 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:
I'd rather have Eclipse to build the URL as::
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?
 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.)
Powered by FUDForum
. Page generated in 0.01787 seconds