Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4617238
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:05:47+00:00 2026-05-22T02:05:47+00:00

Hi I have a bit of a problem. I have written a custom component

  • 0

Hi I have a bit of a problem. I have written a custom component for Joomla 1.6 and I have also just written a custom router.php file for my component so I can have ‘pretty’ SEF urls.

E.g. from

http://www.domain.com/index.php?option=com_my_component&view=list&id=1:test

TO

http://www.domain.com/com_my_component/list/1-test

Very nice, yes! But the problem I am now having is that when I use this piece of code to get a url variable:

$id = JRequest::getVar('id', 'blank');

And print it out, I get:

blank

when I should get the id value. It seems that having now set the SEF urls that my component cannot retrieve the ids and such that actually drive a database driven website. Please could someone give me some insight as to what I might be doing wrong.

Many thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T02:05:48+00:00Added an answer on May 22, 2026 at 2:05 am

    The problem was that in my “ParseRoute” function in my router.php I was not checking and settings the correct url segments. This function is used to check the segments and then set the correct variable with the right segment value depending on the location of it in the url.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bit of a problem. I wrote an API a long time
I have a bit of a problem with user controls. Basically what I want
I have run in to a bit of a problem and I have done
I'm having a bit of a problem. I have a datatable in the parent
I'm having a bit of a problem here. We have 2 urls let me
I have run into a bit of a tricky problem in some C++ code,
Ok - a bit of a mouthful. So the problem I have is this
I have this bit of javascript written with jQuery 1.2.5. It's contained inside the
I have a feeling my problem is a bit strange, but here goes... I
I have a webapp written in PHP using a MySQL database backend. This question

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.