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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T16:03:46+00:00 2026-05-29T16:03:46+00:00

I create a simple home page making at first the controller that point to

  • 0

I create a simple home page making at first the controller that point to it.Now inside the home page I have some links that point to another page.since I’m a newbie I’ asking to what those link have to point?maybe to others controllers that points to another pages? If so, which could be the best way to implement those controller in the index page?

  • 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-29T16:03:46+00:00Added an answer on May 29, 2026 at 4:03 pm

    Don’t understand well your question, but links to other pages are controllers/methods that build those pages.

    You can also use the built-in methods to build a correct url for CI. Load the URL helper (autoload it or use $this->load->helper('url');) and you can use:

    <a href="<?php echo site_url('controller/method');?>">Link to page</a>
    

    That (the site_url() function) would build a correct (for CodeIgniter) link to www.yoursite.com/index.php/controller/method.

    In your controller then you’ll need to create the function (method) you asked for, and load the appropriate views.

    Ex: <a href="<?php echo site_url('blog/write');?>">Write an entry</a>

    will map to controllers/blog.php:

    class Blog extends CI_Controller{
    
      function write()
      {
       $this->load->view('write_form');
      }
    }
    

    But CI’s possibily the best documented framework out there, so refer to the manual and this will be soon very clear.

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

Sidebar

Related Questions

Actually im doing a home page that only have an action called Index() that
i have a simple form on my page with a textbox and button that
I want to create simple html select tags with some populated values(for now what
I have a very simple MVC app at this point: Controller: public class HomeController
On my home page, I want a simple webpart that allow users to quickly
I have a very simple class if(!isset($_GET['page'])) { $_GET['page'] = home; } class be_site
What I'm trying to do: Create a home page on our company's intranet that
How to create simple PHP COMET server page displaying current time? I need code
I recently discovered that I can use lambdas to create simple event handlers. I
Is there a framework out there that will allow me to create simple bar

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.