Joomla 2.5.6 Component Development And XML File

278 views
Skip to first unread message

foysal foysal

unread,
Aug 30, 2012, 9:53:51 AM8/30/12
to joomla-de...@googlegroups.com
Dear All,

I am learning Joomla 2.5.6  Component Development. I am reading this link   http://docs.joomla.org/Developing_a_Model-View-Controller_Component/2.5/Using_the_database. I cant understand how the xml file is parsing. How does it instruct joomla to do a task ??

Thanks

Foysal

Herman Peeren

unread,
Aug 30, 2012, 11:14:36 AM8/30/12
to joomla-de...@googlegroups.com
Hi Foysal,

I think you mean the second XML-file: site/views/helloworld/tmpl/default.xml
That file is used to give the menu-manager the view you want to display and, as is the subject of this article article in the series, the helloworld-messag you want to show. The new helloworld-field is filled in the field-definition you see in the file under it. Parsing of the parameter in the field is done by the menu-system. The result of that field is: the id of the helloworld-message you want to show in the view. That id is given to the component and used by the model to choose the right message.

The first XML-file in the article, helloworld.xml, is only used to install the component. During execution of the program it is not used anymore.
The installer reads it, puts the files on the right place, sets the component in the database, performs the sql etc.
Or are you looking for some more explanation of how this so-called 'manifest' is built up and what the exact meaning of all tags is?

Best regards,
Herman
Reply all
Reply to author
Forward
0 new messages