You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Joomla! General Development
Hi all,
I have been looking at
joomla.application.component.helper::renderComponent and its obvious
that - at least due to the various JPATH_COMPONENT* constants - its
not possible to render a component within a component
Is there any way anyone can advise me to do this?
Maybe some custom renderComponent someone have already in place and
wouldn't mind to share?
I do realize that I could make http request with tmpl=component and
collect the rendered results but that's really not what I would like
to do for the following reasons:
1. feels conceptually so wrong to hit the server again while I am
right in the server executing
2. I would like to merge the rendering parameter with one that is
dynamically built
I have been searching in all Jooma! related groups and I just haven't
found any related discussions which makes me wonder if this need is
really that unique or maybe too off...
Thanks
Herman Peeren
unread,
Oct 24, 2010, 6:39:27 AM10/24/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
Best would be to call the controller of another MVC-triad from the
controller of your "parent"-component. In that way you'll get a
hierarchic "tree" of MVC-triads. That is called HMVC. In Joomla! there
are no native provisions to use that, but you can always program it
yourself; just beware that you don't redirect from your sub-
controller. In Nooku-Framework, which you can easily use within
Joomla!, there are native provisions. See:
http://www.torkiljohnsen.com/2010/09/14/advancing-from-joomla-mvc-to-nooku-hmvc/