Talk

Difference between revisions of "Absolute Basics of How a Component Functions"

From Joomla! Documentation

Line 7: Line 7:
 
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) ?
 
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
 
Anyway, well done great article and lots of gems of knowledge about how Joomla works. Thanks
 +
 +
== Missing in Instructions ==
 +
 +
<source lang="php">//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.
 +
</source>
 +
[[User:Cwurtz|Cwurtz]] ([[User talk:Cwurtz|talk]]) 03:07, 14 December 2013 (CST)

Revision as of 11:45, 14 December 2013

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[edit]

//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)