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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:12:12+00:00 2026-06-07T15:12:12+00:00

I am using Codeigniter 2 and am currently using the ‘Routers’ config file to

  • 0

I am using Codeigniter 2 and am currently using the ‘Routers’ config file to set the routes.
I am also using IonAuth library.
I have a code that does something like:

    $route['admin/(login|logout|change_password|forgot_password|reset_password
|activate|deactivate|create_user)'] = "auth/$1";

Now my problem is that, in some of the IonAuth methods, there are none, 1 or 2 parameters.
If I try to access the url like:

http://localhost/ion_auth_try/admin/deactivate/1

I get an 404 error.

The signature of the ‘deactivate’ method is

function deactivate($id = NULL)

I’ve been trying to solve this for a long time now. I’m stuck.

  • 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-07T15:12:14+00:00Added an answer on June 7, 2026 at 3:12 pm

    If I were you, I’d do this instead.

    $route['admin/(:any)'] = "auth/$1";
    

    It’s much more simpler and it solves the problem perfectly. With the above rule, you can access both admin/some_method and admin/some_other_method/with_a_parameter just fine. However, you should note that if you were to access the page by entering just admin, you’d need to add the following:

    $route['admin'] = "auth";
    

    See the doc: http://codeigniter.com/user_guide/general/routing.html

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

Sidebar

Related Questions

Currently I have create a website using codeigniter. I got a message error every
I am developing a website using Codeigniter and MongoDB (Alex Bilbie library). Currently there
Currently I am using codeigniter 2.0.2 version. I have searched all files but not
Currently working on a bespoke ecommerce application using Codeigniter. I have a products table
Currently, I'm using CodeIgniter framework for my web applications and I have faced one
I'm using codeigniter and .htaccess rewriting. Currently it's rewriting all non-existing file queries to
I have been using CodeIgniter all these while, and have solid foundation in OOP
I am using Codeigniter framework and I have a form with input fields. When
I'm using CodeIgniter (a PHP framework) to build an app, and I have an
Im currently using codeigniter to build a messaging system and im trying to stay

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.