The Joomla! Forum ™



Forum rules


Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Jul 20, 2012 7:45 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jun 20, 2012 4:33 pm
Posts: 17
Hello, does it posible to call and include component function to another component? If yes how can I call it?

Or just gonna view the page from the other component.


Top
 Profile  
 
PostPosted: Wed Aug 08, 2012 3:30 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar

Joined: Fri Sep 09, 2005 2:13 pm
Posts: 7954
Location: The Netherlands
You can use classes so you can call that class and do the code you need.
I haven't tried this before but if the class exsists it should be possible.

_________________
Robert Dam - Joomla Forum Moderator
Dutch Boards | Joomla Coding Boards | English Support Boards


Top
 Profile  
 
PostPosted: Mon Aug 13, 2012 7:20 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Fri Jan 09, 2009 3:16 pm
Posts: 555
Location: Tampa
if its from a NON-core component, I think you are going to have to call the class

For example


if (!class_exists('VirtueMartCart'))
require(JPATH_VM_SITE . DS . 'helpers' . DS . 'cart.php');

then extend it


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 



Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group