![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 173 Pomógł: 121 Dołączył: 24.09.2007 Skąd: Toruń Ostrzeżenie: (0%) ![]() ![]() |
Hej, postanowiłem się przesiąść na jakiegoś gotowe frameworka, wybór padł na Kohana PHP jednka mam mały problem, gdzie mam wrzucić plik style.css. Jeżeli otwieram przeglądarkę tak:
http://localhost/kohana/index.php lub bez index.php to normalnie wszystko jest, ale gdy zrobię np localhost/index.php/welcome to już niema stylu. To samo tyczy się grafiki. To jedeny problem na który trafiłem od kilku dni pracy z tym frameworkiem. A z modelami, controlerami i widokiem niemam żadnych problemów. Ten post edytował ExPlOiT 6.05.2009, 14:09:32 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 1 173 Pomógł: 121 Dołączył: 24.09.2007 Skąd: Toruń Ostrzeżenie: (0%) ![]() ![]() |
Osoby w głównym katalogu kohany, czy w apalications?
Cytat Jak wygląda Twój .htaccess? Kod # Turn on URL rewriting RewriteEngine On # Installation directory RewriteBase /kohana/ # Protect application and system files from being viewed RewriteRule ^(application|modules|system) - [F,L] # Allow any files or directories that exist to be displayed directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Rewrite all other URLs to index.php/URL RewriteRule .* index.php/$0 [PT,L] Ok już działa tak jak chciałem. Dzięki za pomoc. Ten post edytował ExPlOiT 6.05.2009, 14:20:56 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 15.10.2025 - 16:04 |