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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:52:03+00:00 2026-06-05T13:52:03+00:00

As you know, in codeigniter a function name in a class becomes url like

  • 0

As you know, in codeigniter a function name in a class becomes url like :

class Example extends CI_Controller {  

    function sayHello() {

        echo "Hello";  

    }  

}  

To display the content of function simply you can show it by using:

www.mydomain.com/example/sayhello  

My question is, instead of writing all my function names one by one, how can i form these functions using a loop or by fetching function names from database? For example, i have 100 function name in my database. is it possible to do it writing clear and short code or should i write all functions manually? 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-06-05T13:52:05+00:00Added an answer on June 5, 2026 at 1:52 pm

    This has nothing to do with creating functions. Your problem is routing. Solve that:

    class University extends CI_Controller {
    
        public function _remap( $university_name )
        {
    
        }
    
    }
    

    More info: http://codeigniter.com/user_guide/general/controllers.html#remapping

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

Sidebar

Related Questions

In codeigniter, as you know, a page of the form: /class/function/ID , where class
Please see the following controller in CodeIgniter 2 <?php class user extends CI_Controller {
As you might know, the URL for codeigniter is build like this . In
I know that CodeIgniter already elegantly handles URL's. What I have is a form
I'm trying to develop an autocomplete function in Codeigniter, can someone let me know
In codeigniter we use a method call like this $this->load->view(); I wanna know what's
In this codeigniter model, I am trying to push the category name of each
Fairly straightforward question: I know that Codeigniter is a MVC framework - however what
I'm curious to know how to accomplish this task. I have a function in
I want send an array to my codeigniter app for deleted. I know i

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.