Confused in workflow of com_menus component

47 views
Skip to first unread message

Shubham Rajput

unread,
Jun 11, 2016, 3:03:36 PM6/11/16
to Joomla! General Development
Let's suppose create a simple menu item type "single article" in the backend.
Than how the Joomla works i.e.from showing the view part and attaching the menu to the article. That in the com_menu folder how does the workflow?
Which files of com_menus get executed in which order?
Please help me with this

sovainfo

unread,
Jun 11, 2016, 9:12:56 PM6/11/16
to Joomla! General Development
The com_menus component only exists in administrator. That component allows you to create the menu's and their items in the backend.
It is not used for presenting the menu in the frontend. The mod_menu is used both in frontend and backend (there is one for each) to present the menu's.
It is only a small part in creating the complete document.

Shubham Rajput

unread,
Jun 13, 2016, 11:09:40 AM6/13/16
to Joomla! General Development
Can you suggest me a method to call model file function in com_menu using controller file function in com_content?

sovainfo

unread,
Jun 13, 2016, 5:55:30 PM6/13/16
to Joomla! General Development
No such thing as com_menu, assume you mean com_menus. See controller/items.php. It shows how to do that in function rebuild.
Note that this uses the model from the same component. To use a model from a different component you call JLoader::register to tell it where it is.

Shubham Rajput

unread,
Jun 13, 2016, 6:18:40 PM6/13/16
to Joomla! General Development
Thanks a lot sovainfo. And yes i meant com_menus. 
Can you tell me what does helper file does in a component?

sovainfo

unread,
Jun 14, 2016, 5:12:19 PM6/14/16
to Joomla! General Development
It is a collection of functionality. Comparable with code libraries in 3gl. Unfortunately Joomla standardized on this bad OOD.

When creating your own component you should not require it, provided you create a proper object model.

Shubham Rajput

unread,
Jun 17, 2016, 7:25:52 AM6/17/16
to Joomla! General Development
Hi Sovainfo
Can i use jmodelAdmin:getinstance() to call the model of com_menus from controller of com_content?

Hannes Papenberg

unread,
Jun 17, 2016, 7:35:37 AM6/17/16
to Joomla! General Development

No

--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at https://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.

Shubham Rajput

unread,
Jun 17, 2016, 7:41:35 AM6/17/16
to Joomla! General Development
Can you tell me the reason?
Reply all
Reply to author
Forward
0 new messages