Absolute Basics of How a Component Functions

Up to date?

Would someone who is well-versed in writing components for Joomla comment on whether this article is up-to-date? The section on where files should go isn't clear to me, and I wonder if things may have been different prior to Joomla 3.

Chiessyer (talk) 11:03, 2 June 2017 (CDT)

Great Topic

Just want to say this is a great topic and an article from which I learnt a lot. Perhaps it should feature more prominently.

Over recent weeks I've been struggling with understanding how it all hangs together grabbing snippets all over the place, reading through loads of the php source, slow & difficult progress.

I have no doubt it would have taken me several more days to workout that the 'task' was defaulting to display and that I could name my own controller methods (like jump) and have them activated by a URL parameter. (The sort of stuff I imagine every PHP developer coming to Joomla would want to know).

The article may also be a bit dated now with 1.7 I see the demo Hello World MVC component involves 4 files ?? (Basefile + M+V+C) ? Anyway, well done great article and lots of gems of knowledge about how Joomla works. Thanks

Missing in Instructions

//Hi, I have tried to follow these instructions, and found a few missing things.
Setting up my controller.php was missing the following statement in the display class:

return parent::display();

//Without this, the instructions don't work.

Cwurtz (talk) 03:07, 14 December 2013 (CST)

Feel free to correct it. Tom Hutchison (talk) 10:57, 14 December 2013 (CST)

Updated article:

Hello all,

I am a new Joomla! student, I am going through and updating several of the tutorials, those that are geared towards beginners, with current information. My main focus is to update Developing a Model-View-Controller Component/3.x, so that it is geared toward beginners.

This article itself seemed designed originally for Joomla 1.5. For this article, I removed the sections that displayed specific code; this was due to the code differences between 1.5, 2.5, and 3.x. To compensate for this change, I added the links to the specific tutorials for those versions. I also added new sections with information that I have found dispersed throughout the Joomla! documentation.

If you can think of any other additions or revisions that I can make to this article, please let me know.

Warm Regards,

Kevinkabatra (talk) 08:18, 17 September 2015 (CDT)