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

  • Home
  • SEARCH
  • 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 8896397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:02:12+00:00 2026-06-15T00:02:12+00:00

I am totally new in CodeIgnitor. In the controllers folder I created a file

  • 0

I am totally new in CodeIgnitor. In the controllers folder I created a file named caller.php and I created a file home.php in views. In views I also created a folder named css and I created style.css in that css folder. In views I have some pictures. Those pictures are also part of design. Now I want to use style.css and the pictures. But I can’t.

In caller.php I have:

class caller extends CI_Controller
{
    function index()
    {

        $this->load->view('home');  
        // What do I have to write here to load css?
    }
}

In home.php I have:

<html>
<head>

***------what i have to write here to load css--------***

</head>

<body>

<div id="outer">
...
</div>

</body>

</html>

If additional configs 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-15T00:02:18+00:00Added an answer on June 15, 2026 at 12:02 am

    Leading on from what Oliver said of including the stylesheet with:

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

    If you have removed index.php from your URL’s make sure you include your css directory in the rewrite rule.

    RewriteEngine on
    RewriteCond $1 !^(index\.php|css)
    RewriteRule ^(.*)$ /index.php/$1 [L]
    

    This is assuming your stylesheet is located in a folder called css at the root of your application.

    - index.php
    + system
    + application
    + css
       - style.css
    

    Make sure that you have enabled the URL helper to use commands such as base_url(). This can be done globally inside config/autoload.php by adding url to the helper array.

    $autoload['helper'] = array('url');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey i am totally new in Codeigniter. In the Controllers folder I created a
I am totally new to Flex mobile developing. In FlashBuilder for PHP, you need
Totally new to Kubuntu and KDevelop. I created a new No GUI(CMake) Simple CMake-based
Totally new to Cake. I have this table named Content and another one named
I'm totally new to WPF. The following code snippet has the style/settings for a
(Totally new to CodeIgniter and php, not new to programming) In CodeIgniter, how or
I'm totally new to ajax, but pretty good with PHP. I have a PHP
Totally new to programming so kindly excuse the silly question. I have this URL
Totally new to Capistrano. I have a local git repository that I want to
im totally new when it comes to trying to make HTML code. I was

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.