Using eclipse: Referencing joomla from a separate project

81 views
Skip to first unread message

TDZWeb

unread,
Jul 27, 2012, 5:56:24 AM7/27/12
to joomla-de...@googlegroups.com
When I edit code inside the joomla project in eclipse the code completion works great. It even takes into account jimport which gives me a lot of useful inline documentation and code suggestions.

However, when developing a component it is more practical to use the installer package file structure. Is there a way to reference the joomla application from another project so that I get the same benefits? Are there other developinig strategies that will give me what I need?

Imanol Pérez Iriarte

unread,
Jul 27, 2012, 6:43:22 AM7/27/12
to joomla-de...@googlegroups.com
Hi,
My coding strategy is to have 2 projects. One with the package installer structure and other for testing with a full joomla installation. Then every time I build the project I launch a phing (phing is "php version" of ant) script that copies the modified files from one folder to the other.
There's a good tutorial about that here http://docs.joomla.org/Extension_development_using_eclipse_and_phing

2012/7/27 TDZWeb <webm...@tdzwebdesign.no>
When I edit code inside the joomla project in eclipse the code completion works great. It even takes into account jimport which gives me a lot of useful inline documentation and code suggestions.

However, when developing a component it is more practical to use the installer package file structure. Is there a way to reference the joomla application from another project so that I get the same benefits? Are there other developinig strategies that will give me what I need?

--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/duC7P8FGlbkJ.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.

Thomas PAPIN

unread,
Jul 27, 2012, 6:44:49 AM7/27/12
to joomla-de...@googlegroups.com
Open the properties of your projet, in the php include path,under "project " tab add a refrence to your joomla project that is all

Thomas


2012/7/27 TDZWeb <webm...@tdzwebdesign.no>
When I edit code inside the joomla project in eclipse the code completion works great. It even takes into account jimport which gives me a lot of useful inline documentation and code suggestions.

However, when developing a component it is more practical to use the installer package file structure. Is there a way to reference the joomla application from another project so that I get the same benefits? Are there other developinig strategies that will give me what I need?

--

JSamir

unread,
Jul 27, 2012, 6:46:28 AM7/27/12
to joomla-de...@googlegroups.com
Do you symlink the folders then?

TDZWeb

unread,
Jul 27, 2012, 7:06:25 AM7/27/12
to joomla-de...@googlegroups.com
Brilliant! This did the trick. Thx :)


kl. 12:44:49 UTC+2 fredag 27. juli 2012 skrev Thomas PAPIN følgende:
Open the properties of your projet, in the php include path,under "project " tab add a refrence to your joomla project that is all

Thomas


2012/7/27 TDZWeb <webm...@tdzwebdesign.no>
When I edit code inside the joomla project in eclipse the code completion works great. It even takes into account jimport which gives me a lot of useful inline documentation and code suggestions.

However, when developing a component it is more practical to use the installer package file structure. Is there a way to reference the joomla application from another project so that I get the same benefits? Are there other developinig strategies that will give me what I need?

--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/duC7P8FGlbkJ.
To post to this group, send an email to joomla-dev-general@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-general+unsub...@googlegroups.com.

tampe125

unread,
Jul 27, 2012, 11:12:16 AM7/27/12
to joomla-de...@googlegroups.com
I symlink my projects, too, since it's easier to manage them with GIT.
However you *could* have some problems with Eclipse XDebug.
This is very random, i have this issue in a pc, but not in another one O_o

However, if you should have any problem, you can manually add a breakpoint using this function:
if(function_exists('xdebug_break')) xdebug_break();

I wrapped it into a function_exists call to prevent fatal error if i forgot to delete a break point :P
Reply all
Reply to author
Forward
0 new messages