// create JRouterJoomsef object if JoomSEF is installed if (class_exists('JRouterJoomsef')) { $jRouterJoomsef = new JRouterJoomsef(); } else { // no JoomSef installed $jRouterJoomsef = null; }
$link = 'index.php?option=com_custominfo&view=record&id='.$record->id; if (null != $jRouterJoomsef) { // JoomSEF installed and published $link = $jRouterJoomsef->build($link)->getPath(); }
<php> ob_clean();</php><php> foreach ($this->List as $record) {</php> <tr> <td valign="top"> <a href="index.php?option=com_custominfo&view=record&id=<php>echo $record->id;</php> &Itemid=53" class="recordHyperLink"><php> echo $record->firstname.' '.$record->lastname;</php> </a> </td> </tr><php>}</php><php> exit();</php>