1
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);