samedi 31 mai 2014

Joomla 2.5 jroute trouble with localhost


Vote count:

0




I wrote a component and i have trouble using jroute for building links


Example : In my default tmpl in admin part,


if use $link = ''.JRoute::_( 'index.php?option=' . $option . '&task=tournoi.edit&id=' . $row->tournois_id );


or $link = JRoute::_( 'index.php?option=' . $option . '&task=tournoi.edit&id=' . $row->tournois_id );


i get



http://joomla_new/administrator/index.php?option=com_tournois&task=generatereport&tid=1" where localhost is missing.


if i just add space like this : $link = ' '.JRoute::_( 'index.php?option=' . $option . '&task=tournoi.edit&id=' . $row->tournois_id );


i get



http://localhost/%20/Joomla_new/administrator/index.php?option=com_tournois&task=tournoi.edit&id=1


Anyone has an idea ?


Thanks !



asked 39 secs ago






Aucun commentaire:

Enregistrer un commentaire