Forum
Question about the Router
Sébastien
Posts: 6
General
October 08, 2022
Hi !
I have a question about this page :
https://www.techfry.com/joomla/how-to-create-router-for-joomla-component
You mentioned this :
"Now, you have to convert the ids to and from their alias. So for each view registered, you need to provide two methods for building and parsing URLs.
- get[Viewname]Segment($id, $query)
- get[Viewname]Id($segment, $query)"
Is it possible to give us the piece of code for this part ? I don't understand how to code these two methods.
Thanks.
Sébastien
Posts: 6