How to solve the problem that the css file in the main template is connected only when calling index methods? When you call the rest, the page is displayed without css.

  • Write a template so that it is always connected, isn't it obvious? :) - Zowie
  • Nuuu)) I have it attached at the beginning ... or how can I attach it to another friend? - GiovannI
  • <link href = "css / style.css" rel = "stylesheet" type = "text / css"> - GiovannI
  • It is in one case, when the default index is triggered - it shows, and when not the default index - it does not display css. - GiovannI

1 answer 1

Make the path absolute, not css/style.css , but /css/style.css .

  • With absolute he does not reflect at all. - GiovannI
  • those. the appearance changes, but some methods that are not familiar at all are applied to divas, etc. - GiovannI
  • Well, write down the entire path to css, how are you, something like: <br> /view/css/style.css or something like that, I haven't been using Cohan for a year, just make sure that the path to css does not depend on current url of the current page address ... - Zowie
  • I partially understood ... I put a picture in the same folder with Css in html, and I also registered the path to css / logo.jpg and it also did not appear, and the url shows how: localhost / kohana / article / id / css / logo. jpg - GiovannI
  • Well, that is Build all the paths so that they start from / and you will forget about such problems forever, I guarantee :) - Zowie