php - Path Question for Kohana -


I'm newbie for Kohana (used v3). When I run Hello World example, if I link to any other CSS file, then CSS is not working.

The basic example works well.

Let's go and see the file application / view / site.php message:

   & Lt; P & gt; We just wanted to say it! :) & Lt; / P & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

I changed the CSS into another file like this. And I had default.css placed on the same directory of the application / view / default.css ... instead of the current ... it does not work with default.css! ? Can you please tell me how to fix this and how?

  & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; We've received a message for you! & Lt; / Title & gt; & Lt; LINK href = "default.css" rel = "stylesheet" type = "text / css" & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; H1 & gt; & Lt ;? Php ek $ message; ? & Gt; & Lt; / H1> & Lt; P & gt; We just wanted to say it! :) & Lt; / P & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

Update

Logo.gif can not even appear and I created a new folder 'picture' and a logo in it GIF kept. Such as ths Applications / Views / Images / Logo.gif

Application / View / site.php

  & lt; Div id = "header" & gt; & Lt; Div id = "logo" & gt; & Lt; P & gt; & Lt; Img src = "../ index.php / images / logo.gif" alt = "" / & gt; & Lt; / P & gt; & Lt; H1 & gt; & Lt ;? Php ek $ message; ? & Gt; & Lt; / A & gt; & Lt; / H1> & Lt; H2 & gt; We just wanted to say it! :) & Lt; / H2 & gt; & Lt; / Div & gt; & Lt; / Div & gt;  

What's wrong with this? Thanks for reading and answering.

First of all, place your CSS in a directory under the root such as this:

 Application / view / template.upp  

 >  & lt ;? Php echo html: stylesheet (array ('media / css / default',), array ('screen',)); ? & Gt;  

You do not need to add a link to HTML. Framework will add a link using the template for you.

Gives some more details about this.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -