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

  • SEARCH
  • Home
  • 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 6051799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:51:28+00:00 2026-05-23T07:51:28+00:00

result I want : greeting/102/steve => greeting/index/102/steve in greeting.php : function index($order,$name) { echo

  • 0

result I want :

greeting/102/steve =>  greeting/index/102/steve

in greeting.php :

function index($order,$name)
{
    echo "order: $order , name : $name ! ";
}    

in route.php :

$route['greeting/(:num)/(:any)'] = "greeting/index/$1/$2";    

result I get :

order : , name : steve !
  • 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-23T07:51:28+00:00Added an answer on May 23, 2026 at 7:51 am

    Actually, it’s right to use double quotes. It’s even indicated like this in the manual (beside having done it a hundred times), so I don’t see the problem @cwallenpool is pointing out.
    Your routing looks fine, be sure it is called after the reserved routes

    $route['default_controller'] = "welcome";
    $route['404_override'] = '';
    $route['greeting/(:num)/(:any)'] = "greeting/index/$1/$2";
    

    .
    I suggest you to try using $this->uri->rsegment(n) (info on user guide here) to catch the rerouted uri segment that’s causing you trouble. (similar to $this->uri->segment(n) but designed specifically for rerouted URIs)

    You can also try changing the $config['uri_protocol'] from AUTO to PATH_INFO (or one of the other alternatives) and see if the problem doesn’t sit there. Remember also to delete the ‘index.php’ part in $config['index_page'] if you’re using htaccess to delete the index.php from you URL.

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

Sidebar

Related Questions

i search online but can't get satisfactory result i want to protect images on
I want to get the e.result before it pumps data into my listbox..I want
I have a JavaScript function which does not give the result I want. Here
I didn't get the result I want from the following code: Private Sub tblView_SelectionChanged(ByVal
I have this query to get the first result I want from this post
Please look the below table, RowID Name Age 1 Karhik 26 I want result
I've managed to find the Regex to get almost the result I want here
Alright so here is my code, I get the result I want but I
I get this array when I print_r($_POST) , from the below result I want
table      : Emaployee Columns: name(nvarchar(256)), Salary(decimal(18,2)) Now, I want result with additional column 'Grade'=     'A'

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.