Page 1 of 1

J!code, easyeclipse, joomla framework confusion

Posted: Fri Oct 19, 2007 8:59 pm
by Minnie Mouse
Hi, I am a newbie to development but i am getting pretty good at hacking others' php code. i wanted to learn how to make a new joomla 1.5 component or module myself. so i downloaded easyeclipse (recommended in a book i got). it works really well, but it will only preview for me in "standard" php. if i run a command (please excuse me if my terminology isnt correct) say JText::_
it wont return the text, but a plain echo will.

so i figured i needed the joomla framework too, and downloaded J!Code. but that doesnt seem to be any different than easyeclipse. am i missing something? is there something else i need to install?

thanks!
Minnie Mouse

Re: J!code, easyeclipse, joomla framework confusion

Posted: Fri Oct 19, 2007 9:20 pm
by ianmac
ummm...  you also need Joomla!

J!Code is a version of EasyEclipse.

Ian

Re: J!code, easyeclipse, joomla framework confusion

Posted: Fri Oct 19, 2007 9:30 pm
by Minnie Mouse
:) :D :)

Ian, okay, i am a little clueless i admit, but ummm i have joomla. do i need to have the webspace pointing into the joomla components folder? right now its pointing to another folder at the root of my local host.

so i have MAMP installed and a htdocs folder. joomla is installed in htdocs as well as the workspace folder.
jcode is installed in my applications folder.

or do i need to run the component within joomla itself to preview instead of the direct page. i was turning off the restricted access line to test.
thanks for your help!!hopefully one day i can contribute something back if i can ever get this figured out.
Liz

Re: J!code, easyeclipse, joomla framework confusion

Posted: Sat Oct 20, 2007 12:32 am
by AmyStephen
Hey Liz -

I, too, am starting on Joomla! Development. I am also very new to Eclipse, but, I have several installations of Joomla! in my htdocs directory. Then, in Eclipse, you can select the File-New PHP project menu option - select the location of the entire Joomla! website folder and then look at the core code *and* create your new extensions. I know this because I can't code without looking at their code. ;)

Also - we have a new Joomla! Coders 101 Forum area that you might appreciate. I'm going to "report your post" and ask that the moderators move this thread into that forum area. If they agree, you'll get an email notifying you of the location of the thread.

I look forward to watching your success in this journey. Have fun with Joomla!
Amy :)

Re: J!code, easyeclipse, joomla framework confusion

Posted: Sat Oct 20, 2007 12:38 am
by Minnie Mouse
Thanks Amy, i will give that a try and let you know how it goes!
Liz

Re: J!code, easyeclipse, joomla framework confusion

Posted: Sat Oct 20, 2007 12:59 am
by ianmac
Minnie Mouse wrote:or do i need to run the component within joomla itself to preview instead of the direct page. i was turning off the restricted access line to test.
thanks for your help!!hopefully one day i can contribute something back if i can ever get this figured out.
Liz


Yes...  though it is possible to write code that can be totally separate from Joomla!, it is much easier to use the Joomla! API.  It simplifies many tasks.  Your file does not get loaded directly - it gets loaded through Joomla!

Ian

Re: J!code, easyeclipse, joomla framework confusion

Posted: Sat Oct 20, 2007 3:21 am
by ccondrup
I found EasyEclipse a couple of years back, and loved it from the start! Am eagerly awaiting J!Code  :-*

Anyways, perhaps I can assist with a tip or two here! I made some screenshots, trying to show what features I find most useful.

Paths, project paths etc in Eclipse
Image

Here are two shots showing what features I use the most:
Image  Image

And then a couple of a-ha's I have had while using EasyEclipse:
* A note regarding using SVN within Eclipse (Subclipse): I have had some issues when using JavaHL, these all went away when switching to SVNKit in preferences, under Team > SVN > SVN interface.

* For those running Windows and have the problem where it does not remember your SVN credentials even though you checked the "save" option: Make sure this folder exists: C:\Documents and Settings\MyUser\Application Data\Subversion\auth

Need additional help? We are are a select few chatting about Joomla and EasyEclipse daily on irc. Check out the #joomla and #easyeclipse channels on Freenode - we would love some more regulars :)

Re: J!code, easyeclipse, joomla framework confusion

Posted: Sat Oct 20, 2007 3:25 am
by Minnie Mouse
oh my god!! thanks, that is just what i needed. i think  ;)... i dont have time to go through the whole thing right now, but it looks like it answers the questions i had about setup i was about to ask.

will get back to you and let you know how its going...
i downloaded the alpha of jcode. it seems to me to be identical to easyeclipse... '

Liz

Re: J!code, easyeclipse, joomla framework confusion

Posted: Sat Oct 20, 2007 3:35 am
by Minnie Mouse
if you make a project in webroot/joomlainstallation  does it wipe out your installation of joomla. i am a little confused about the whole workspace location settings

thanks,liz

Re: J!code, easyeclipse, joomla framework confusion

Posted: Sat Oct 20, 2007 3:48 am
by Minnie Mouse
okay, i think i figured it out a little. my problem was i had a joomla installation that already existed. if i make a project with that name, it replaces that folder. so i made a new project, drag and dropped all the joomla files into it in the eclipse navigator and then deleted the old folder on my HD and renamed the new one in eclipse...

is there an easier way to do this? i tried to import the folder structure but it came in like this Applications/MAMP/htdocs/joomlafolder/files...


Liz

Re: J!code, easyeclipse, joomla framework confusion

Posted: Mon Nov 05, 2007 9:23 pm
by Wendy
sorry to jump in so late.  I'm going to now move this over to Coding 101. 

Re: J!code, easyeclipse, joomla framework confusion

Posted: Thu Nov 22, 2007 7:27 pm
by Comenius
I found this post really useful and it inspired me to explore what was available as far as Open Source development tools.  :) 

I recently found the PDT version of Eclipse available at http://www.eclipse.org/pdt/ which is full of great tools to help build and test PHP code.  It's an all-in-one package that installs in minutes and includes all the basics.  It seems as if it's several versions ahead in its underlying version of Eclipse compared to the J!Code, EasyEclipse and phpEclipse versions that also use Eclipse as their foundation.

To add debugging I got the Xdebug client from http://xdebug.org/.  It was really easy to install and get up and running.  I tried for quite some time to get the Zend Debugger from http://www.zend.com/en/community/pdt#ws_debugger to work with my PHP/Apache environment (using PHP as a CGI which is a requirment of my production host) and ultimately gave up as Xdebug worked in less than a minute.

I added Eclipse SQL Explorer from http://eclipsesql.sourceforge.net/ which I found worked great for both local and remote databases.  I personally preferred it to the QuantumDB plugin from http://quantum.sourceforge.net/ as it enabled me to sort data within tables in the gui by just clicking the column names--behaviour just like you would expect from any desktop OS.  A small difference, I know, and the Quantum plugin was solid too.

For a SVN client, I added Subversive from http://www.polarion.org/index.php?page= ... subversive which made staying in sync with a SVN repository from within Eclipse a snap.  I liked the way it showed histories in a directory tree which the main alternative Subclipse from http://subclipse.tigris.org/ did not.  Subclipse though was just as good in its other SVN capabilities.

A neat tool which I just found yesterday is Mylyn from http://www.eclipse.org/mylyn/ which essentially allows you to create and manage a list of tasks, assign categories and priorities, and integrate with bug tracker systems too.

The Remote System Explorer from http://download.eclipse.org/dsdp/tm/downloads/index.php is the final bit I've added, which helped to move files between my local machine and my remote FTP host.

I'm sure I'm also just scratching the surface of what else is available!

:)