joomla - Jooma Custom Component Router.php not being called -
i'm using joomla 3.1.
i'm having strange issue router.php file in component.
i have basic router.php file, not doing yet, before add features need working on basic stuff first.
i have menu item component set item type. viewing homepage shows view created.
for links, if use following:
echo jroute::_('index.php?option=com_vacations&view=test&cat=123');
i this:
http://mysite/en/component/vacations/?view=test&cat=123
i not want "component/vacations" shown however. i've tried this:
echo jroute::_('index.php?view=test&cat=123');
and get:
http://mysite/en/?view=test&cat=123
seemingly correct, second method never touches router.php. means cannot alter display like:
http://mysite/en/test/123
how can fix url parsed through router.php?
when use jroute create links application create full query in first code:
echo jroute::_('index.php?option=com_vacations&view=test&cat=123');
router work router when write routing functions. without rooter return links using default joomla routing markup (like http://mysite/en/component/vacations/?view=test&cat=123
). code joomla component com_weblinks. understand whole process. can find here: /components/com_weblinks/router.php
Comments
Post a Comment