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 "";
echo "
";
$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



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

323 user(s) are online (255 user(s) are browsing Support Forums)


Members: 0


Guests: 323


more...

Donat-O-Meter

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

Latest GitHub Commits