Access a module from another section

I need to access a module from another section of the code.

 

How do I include the module?

 

I imagine it's a require_once line, just not sure how.

 

Thanks!

 

http://www.mytikibar.com
Quote · 17 Nov 2011

please elaborate.....

so much to do....
Quote · 17 Nov 2011

I am modifying short_profile_info.php.

And actually, all I need to include is the database functions of dolphin to read some information from 2 tables I have in a join statement.

I am not THAT strong in php and classes and the like so, I really don't understand how to require/include BxDolTwigModule.db so I can access the database functions

 

I need to 

 

if (verifyTable("modzzz_mood_main"))

 

and

 $aMood = $MySql->getRow("SELECT mm.`member_id`, mm.`mood_id`, mm.`message`, UNIX_TIMESTAMP(mm.`changed`) as `changed`, sm.`category`, sm.`title`, sm.`icon` FROM `modzzz_mood_main` mm, `modzzz_mood_moods` sm WHERE sm.id = mm.`mood_id` AND `member_id`={$iMemberID} ORDER BY `changed` DESC LIMIT 1");

I have bx_import('BxDolTwigModuleDb');

at the top of the file, but I get the following error
[Thu Nov 17 19:02:05 2011] [error] [client 24.21.30.229] PHP Fatal error:  Call to undefined function verifyTable() in /var/www/mytikibar/short_profile_info.php on line 114, referer: http://mytikibar.servebeer.com/
AND this error as well if I comment out the verifyTable line
[Thu Nov 17 19:38:06 2011] [error] [client 24.21.30.229] PHP Fatal error:  Call to a member function getRow() on a non-object in /mypath/mytikibar/short_profile_info.php on line 118, referer: http://mytikibar.servebeer.com/
This actually works in a different module and I cannot for the life of me figure out why the one I am working in won't.
 

thanks!!!

http://www.mytikibar.com
Quote · 18 Nov 2011

Nevermind, I figured it out.  Apparently I need to spend some time watching some iTunes classes on PHP classes and objects!

 

http://www.mytikibar.com
Quote · 19 Nov 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.