Page 1 of 1

Re: Writing components for Joomla! 1.5

Posted: Mon Sep 24, 2007 9:02 am
by cleo_sunshine
Hallo Chris,

have lot of thanks for your support- it's really helpful! I'm new here and I'm starting with Endeleo and I like to create own components. With a demonstration on the site : http://help.joomla.org/content/view/773/125/ you can create an 'helloworld' component, but I have noticed that it doesn't work with Endeleo (Fatal error: Cannot redeclare class patTemplate ). So if you like to write an example to create own components it would be genial!!!!!!!!!!!!

Tanks a lot and have a nice day :)

Bye

Mod Note: Split into new topic because it doesn't relate to templates.

Re: Writing components for Joomla! 1.5

Posted: Tue Sep 25, 2007 4:23 pm
by ianmac
For information on writing component for 1.5, look at dev.joomla.org.  There are component tutorials in the developer's wiki.  The MVC tutorial is the most up to date.

Ian

Re: Writing components for Joomla! 1.5

Posted: Sun Oct 07, 2007 10:08 am
by Mike460
All respect for those who have written the tutorials (e.g. HelloWorld etc) on dev.joomla.org.
But these tutorials only scratch the surface and they don't really explain all the classses which
may be used to create anything else which is more advanced than a simple HelloWorld component.

What we need is a more detailed overview of all the classes, not the file structure.
There are tons of tutorials one may find on Google which explain which files to
put where, and so on, to create a simple HellowWorld component.

However, the actual framework in Joomla 1.5 seems to lack a decent documentation.
The API reference on api.joomla.org is automatically generated by phpDocumentor
and not really a true documenation, but just another way of publishing the API files.

Re: Writing components for Joomla! 1.5

Posted: Mon Oct 08, 2007 4:35 am
by ianmac
Mike460 wrote: All respect for those who have written the tutorials (e.g. HelloWorld etc) on dev.joomla.org.
But these tutorials only scratch the surface and they don't really explain all the classses which
may be used to create anything else which is more advanced than a simple HelloWorld component.
Absolutely...  that isn't the purpose of the hello world tutorials.
What we need is a more detailed overview of all the classes, not the file structure.
There are tons of tutorials one may find on Google which explain which files to
put where, and so on, to create a simple HellowWorld component.

However, the actual framework in Joomla 1.5 seems to lack a decent documentation.
The API reference on api.joomla.org is automatically generated by phpDocumentor
and not really a true documenation, but just another way of publishing the API files.

Yep, and we need more volunteers for that.  Check out the documentation wiki for the API reference that we already have (it needs some updates and isn't complete since it was all hand written, though it has examples for the stuff it does have, so it is often more helpful that api.joomla.org).

Ian

Re: Writing components for Joomla! 1.5

Posted: Mon Aug 04, 2008 11:36 am
by david.ledger
Any chance of a url for the developers' wiki and the Tutorial pages? Please don't say 'use the search', because it doesn't return anything.

Thanks,
David

Re: Writing components for Joomla! 1.5

Posted: Mon Aug 04, 2008 1:50 pm
by dextercowley
Hi. Here is one link: http://docs.joomla.org/Developers. If you start at the Documentation home page and then press "Start Here", you get the main Wiki article. Pressing the "Developers" link takes you to the main developers page. What could we do to make this page easier to find? Thanks. Mark

Re: Writing components for Joomla! 1.5

Posted: Mon Aug 04, 2008 2:42 pm
by david.ledger
It's probably a 'divided by a common language' problem. To me, as an English English speaker, what I've seen means "go to http://developer.joomla.org/documentation.html and look for the wiki" rather than "go to http...html which _is_ a wiki'.

Still can't see any tutorials on writing you own Component though. The four tutorials are 'Setting up Joomla! Sites with SVN', 'How to Create a Joomla! Plugin', 'Preventing SQL Injections', and 'Understanding Output Overrides in Joomla! 1.5'; and I havn't got that far yet. Maybe there are more that I havn't found yet.

David

Re: Writing components for Joomla! 1.5

Posted: Mon Aug 04, 2008 3:31 pm
by dextercowley
Hi. I'm a little confused. The first three links on http://developer.joomla.org/documentation.html would seem to be what you are looking for, especially the third link: http://docs.joomla.org/Category:Development
The 4-part tutorial for working with the model-view-controller is probably a good place to start. If you don't mind buying a book, the book "Mastering Joomla! 1.5 Extension and Framework Development" By James Kennard is a good book. Look in the Shop site for more info.

Also, if you are new to Joomla! development, you might want to learn about template overrides first, since they are a way to modify existing Joomla! without hacking the core files.

Hope this helps. Mark

Re: Writing components for Joomla! 1.5

Posted: Fri Feb 27, 2009 8:06 pm
by elkuku
This one is also focused in Joomla! extension development: EasyCreator

Re: Writing components for Joomla! 1.5

Posted: Tue Mar 03, 2009 12:20 pm
by torkil
You can also check out MVC Generator, which is an online tool as well, but is more versatile than the Joomla Component Creator listen above.

Re: Re: Writing components for Joomla! 1.5

Posted: Thu Nov 04, 2010 1:09 am
by irastralia
these tutorials all seem to use PHP. is there any tutorial for creating JAVA components for joomla?

Re: Re: Writing components for Joomla! 1.5

Posted: Thu Nov 04, 2010 1:15 am
by dextercowley
Joomla! is written using PHP, so virtually all of the components for it also use PHP. If you want to write components in Java, you probably want to find a CMS or framework that is Java based. Good luck. Mark

Re: Re: Writing components for Joomla! 1.5

Posted: Sat Nov 06, 2010 7:23 am
by irastralia
so you mean that it is impossible to write a java component in Joomla?

Re: Re: Writing components for Joomla! 1.5

Posted: Sat Nov 06, 2010 2:52 pm
by dextercowley
Hi. I'm afraid I don't know enough to answer that question. The way components are normally written such that they are installed as php files in the Joomla! folder structure and are called as php classes and interact with the Joomla! core code as php classes. So in that sense, they obviously have to be php.

On the other hand, there is no reason why you couldn't write Java that works with the same MySQL database and perhaps interacts with the Joomla! platform. But it would be working as an external application to Joomla! in that case.

Again, I am not the best qualified person to answer this question. Good luck. Mark

Re: Re: Writing components for Joomla! 1.5

Posted: Sat Nov 06, 2010 5:30 pm
by Soren Jensen
Yes it is impossible to write a component in Java. You can write a java applet that can be served by a component but that is about it. Joomla is pure PHP server side.

Re: Re: Writing components for Joomla! 1.5

Posted: Sun Nov 07, 2010 10:59 pm
by irastralia
hi

thanks for your explanations. can you please let me know if there is any specific version of PHP that is adopted with Joomla!, PHP6, PHP5,..., or it makes no differences?

Re: Re: Writing components for Joomla! 1.5

Posted: Mon Nov 08, 2010 6:13 am
by torkil
Just Google "joomla 1.6 php requirement" for instance, and you will find what you're looking for.

Re: Re: Writing components for Joomla! 1.5

Posted: Mon Nov 08, 2010 6:24 am
by irastralia
thanks