1
Mazar
I started learning xoops but having problems
  • 2009/7/23 14:10

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


I dont know if i am posting on the right fourm. I recently began to XOOPS module developing i having problem with XOOPS pagenav
here is the error code
Fatal error: Call to a member function renderNav() on a non-object

My code
include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
global $xoopsDB, $xoopModuleConfig;
echo "<table border='0' cellpadding='5' cellspacing='0'>";
echo "<tr><td colspan=2' align='left'>";
$start = isset( $HTTP_GET_VARS['start'] ) ? intval( $HTTP_GET_VARS['start'] ) : 0;
$result = $xoopsDB->queryF("SELECT * FROM ".$xoopsDB->prefix('mymod')."");
$recordtotal = mysql_num_rows($result);
$recordsperpage = 5;
if (!$start) $start = 0;
if ($recordtotal) $nav = new XoopsPageNav($recordtotal, $recordsperpage, $start, 'start', '');
echo $nav->renderNav($offset = 4);

2
Mazar
Re: I started learning xoops but having problems
  • 2009/7/23 14:14

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


I see one guy Trabis here very helpfull, and i am hoping some help from him and other members here to learn some module developing and help the project.

3
dbman
Re: I started learning xoops but having problems
  • 2009/7/23 15:07

  • dbman

  • Friend of XOOPS

  • Posts: 172

  • Since: 2005/4/28


check this example by Tank:

http://www.customvirtualdesigns.com/modules/AMS/article.php?storyid=8

4
culex
Re: I started learning xoops but having problems
  • 2009/7/23 17:16

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Another example here
From Xtorrent
Programming is like sex:
One mistake and you have to support it for the rest of your life.

5
Mazar
Re: I started learning xoops but having problems
  • 2009/7/23 17:36

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


Thanks both of you for the help. it worked

Login

Who's Online

168 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 168


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits