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 8147173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:15:43+00:00 2026-06-06T14:15:43+00:00

This is weird… I’m using the MVC pattern in php (codeigniter) to display a

  • 0

This is weird… I’m using the MVC pattern in php (codeigniter) to display a user’s created categories. The URL pointing to a user’s categories is

http://mysite.com/categories/user

This works in the Google Chrome browser but if Firefox it takes me to the index. Adding a trailing slash…

http://mysite.com/categories/user/

…takes me to the correct destination in both browsers. Also renaming the user controller works.

Inside controller

function user()
{
        $data['query'] = $this->Category_model->read_all_user_categories();
        $this->load->view('categories/read/user_categories', $data);    
}

The Model just returns a query.

What typically causes this behavior? I looked in all my files and can’t find the culprit.

Crossing out possible causes:

  • I don’t have identical functions named user
  • No Controller named user
  • No library, helper named user

What could it be?

  • 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-06-06T14:15:44+00:00Added an answer on June 6, 2026 at 2:15 pm

    I just checked CI’s docs, and:

    The “index” function is always loaded by default if the second segment of the URI is empty.

    Sorry for the mistaken information.

    The sentence below is still valid (confirmation: http://wordpress.org/support/topic/links-to-wordpress-post-tabs-pages-must-have-trailing-slash)

    The reason that it works on Chrome but not on Firefox, is due to Chrome’s behavior of removing the last slash when submitting the request.

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

Sidebar

Related Questions

having this weird issue while inserting to MongoDB using PHP. My insertion code is
I have this weird problem with setting up cookies with PHP. Everything worked fine
Got this weird issue with Using jQuery 1.6.0 issue. I am trying to append
I have this weird issue with special characters. In JSP, I am using field
I'm having this weird situation : My user's and system's PATH variable is different
We're having this weird behavior regarding our logs. We're using log4net and here is
I'm having this weird problem. My code is simple: #include <iostream> using namespace std;
I'm getting this weird linker error using gcc, thought the code works fine when
this weird thing is happening with my uitableview cell selection style, Instead of changing
I got this weird error when I wanted to validate my in-memory xml Schema,

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.