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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:58:13+00:00 2026-05-13T12:58:13+00:00

I am newbie to Kohana (v3 used). When I run the Hello World example.

  • 0

I am newbie to Kohana (v3 used).
When I run the Hello World example.
If I link to another css file, the css doesn’t work.

Original example works well.

Let’s go and make the view file application/views/site.php for our message:

<html>
    <head>
        <title>We've got a message for you!</title>
        <style type="text/css">
            body {font-family: Georgia;}
            h1 {font-style: italic;}

        </style>
    </head>
    <body>
        <h1><?php echo $message; ?></h1>
        <p>We just wanted to say it! :)</p>
    </body>
</html>

I changed the Css to another file like this. and I placed the default.css at the same directory of application/views/default.css
Instead the current … with default.css. It doesn’t work! ? Could you tell me why and how to fix it. Thanks.

<html>
    <head>
        <title>We've got a message for you!</title>
        <LINK href="default.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <h1><?php echo $message; ?></h1>
        <p>We just wanted to say it! :)</p>
    </body>
</html>

update.

The Logo.gif also can’t show up.
And i created a new folder ‘images’ and placed a Logo.gif in it.
like ths application/views/images/Logo.gif

application/views/site.php

 <div id="header">
  <div id="logo">
   <p><img src="../index.php/images/Logo.gif" alt=""/></p>
   <h1><?php echo $message; ?></a></h1>
   <h2>We just wanted to say it! :)</h2>
  </div>
 </div>

What’s wrong with it? Thanks for reading and replies.

  • 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-13T12:58:13+00:00Added an answer on May 13, 2026 at 12:58 pm

    The way kohana works may take some getting used to. First, place your css in a directory under the root like this:

       media/css/default.css
    

    Next, edit the template file: application/views/template.php

      <?php echo html::stylesheet(
      array
      (
        'media/css/default',
      ),
      array
      (
        'screen',
       )
     );
     ?>
    

    You do not need to add the link to the HTML. The framework will add the link for you using the template.

    This page gives a few more details about this.

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

Sidebar

Related Questions

I am (newbie) using Kohana V 3.0.3 and my directory structure is: pojectsys (kohana's
dudes. I hope this question is not a repost. I'm newbie on Kohana. I'm
Newbie jquery: does the .css() function alter css properties of an element if the
newbie question; I have two binary numbers; say for example; 0b11 and 0b00. How
I'm not good in PHP and newbie in Kohana. I'm very interesting how Kohana
Newbie to windows scripting. I need help running the .bat file on the command
Newbie question here, is there any inbuilt PHP tag that can be used to
Newbie programmer here trying to implement quicksort, yet it won't work. I've looked at
Newbie question but I can't find the answer. On first run my app is
Newbie :) I am trying to create a picture w/ description portfolio. It works

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.