Forum


Question about the Router

Sébastien
6%
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.

  1. get[Viewname]Segment($id, $query)
  2. 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.

Tech Fry
100%
Posts: 898
October 10, 2022

Hello

We have updated the article with relevant code.

Sébastien
6%
Posts: 6
October 12, 2022

Thanks a lot ! With your help I've been able to fix my code for my Router page :)  Really appreciated !

I'll post a new message for another little query. 

Login to Reply