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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:08:37+00:00 2026-06-14T12:08:37+00:00

Hey i am totally new in Codeigniter. In the Controllers folder I created a

  • 0

Hey i am totally new in Codeigniter. In the Controllers folder I created a file named caller.php and I created a file home1.php in \Views. In root directory i created an image folder named \Images and also created a css folder named \css. In images Folder there are 6 picture. In css folder style.css file exist.

In caller.php i write

<?
class caller extends CI_Controller
{
    function index()
    {
        $this->load->view('home1');

        // what i have to write here lo load images....

    }
}

In home1.php i write

<html>
  <head>

    <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/style.css">

    // what i have to write here to load images


  </head>

  <body>
    <div id="outer">

      <div id="container">

        <div id="images">
          <img src="new.jpg" width="960" height="400"/>
          <img id="image1" src="1.jpg" />
          <img id="image2" src="2.jpg" />
          <img id="image3" src="3.jpg" />
          <img id="image4" src="4.jpg" />
          <img id="image5" src="5.jpg" />
        </div>

        <div id="slider">
          <a href="#image1">1</a>
          <a href="#image2">2</a>
          <a href="#image3">3</a>
          <a href="#image4">4</a>
          <a href="#image5">5</a>
        </div>
...................................................
....................................................
      </div>
    </div>
  </body>
</html>

Now for the above code how i load the images .Please experts help me.
if additional config’s are needed please mention that.

  • 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-14T12:08:38+00:00Added an answer on June 14, 2026 at 12:08 pm

    As you’re already using the url helper I suggest wrapping your image src attributes with base_url, such as:

    <img src="<?php echo base_url('images/1.jpg'); ?>" />
    

    And as mentioned in the other answer it’s best (mandatory?) to capitalize the class name in your controller

    class Caller extends CI_Controller { ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey I am new to PHp and I am trying to enter details into
Hey, I'm totally behind this topic. Yesterday I was doing profiling using Python profiler
hey guys, I'm totally inexperienced in terms of threads, so here's my question: How
Hey guys here is my php: $x = array(one, two, three); foreach ($x as
Hey guys I am new to android development, I am currently making an application.The
Hey Im totally out of my depth and my brain is starting to hurt..
hey guys, i want to hash the password so it is totally encrypted, i
Hey, this question might sound totally idiotic so I am sorry. I am a
Hey. First question here, probably extremely lame, but I totally suck in regular expressions
Hey all, I have an array that holds all of the .aif file paths

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.