Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Symfony] routing
Nero12
post
Post #1





Grupa: Zarejestrowani
Postów: 30
Pomógł: 0
Dołączył: 27.08.2006

Ostrzeżenie: (0%)
-----


Sorry za male zasmiecanie (3 temat w ciagu 2-3 dni).

Na razie opisze podstawowa rzecz:

wrzucilem takie cos w routing.yml:

list_of_newses:
url: /newses
param: { module: news, action: index }

i gdy wpisuje w pasku adresu: http://localhost/sf_sandbox_3/web/newses dostaje ze nie ma takiej strony
w devie: http://localhost/sf_sandbox_3/web/frontend_dev.php/newses - Action "newses/index" does not exist.

http://localhost/sf_sandbox_3/web i modul z akcja (news/index) oczywiscie istnieja i dzialaja.

Co robie zle / co moze byc przyczyna problemu ? Z dokumentacji korzystam ;/ Nigdy wczesniej nie korzystalem z podobnych mechanizmow (ani nawet z mod_rewrite).
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
sanchoo
post
Post #2





Grupa: Zarejestrowani
Postów: 161
Pomógł: 1
Dołączył: 11.02.2007
Skąd: Kraków

Ostrzeżenie: (0%)
-----


Mam inny probelm związany z routingem. Mianowicie gdy w settings.yml ustawiam:
  1. prod:
  2.  .settings:
  3.    no_script_name:           on


w .htaccess mam:
  1. <IfModule mod_rewrite.c>
  2.  RewriteEngine On
  3.  
  4.  # we skip all files with .something
  5.  RewriteCond %{REQUEST_URI} \..+$
  6.  RewriteCond %{REQUEST_URI} !\.html$
  7.  RewriteRule .* - [L]
  8.  
  9.  # we check if the .html version is here (caching)
  10.  RewriteRule ^$ index.html [QSA]
  11.  RewriteRule ^([^.]+)$ $1.html [QSA]
  12.  RewriteCond %{REQUEST_FILENAME} !-f
  13.  
  14.  # no, so we redirect to our front web controller
  15.  RewriteRule ^(.*)$ index.php [QSA,L]
  16. </IfModule>


dostaje:"Not Found

The requested URL /home/sanchoo/public_html/fronted_symfony/web/index.php was not found on this server."
oczywiśćie jak w urlu dodam z palca "index.phg" jest ok,...

w logach apacha dostaje tylko tyle (logiczne co do komunikatu;))
[Sat Jul 26 20:42:08 2008] [error] [client 192.168.98.236] File does not exist: /var/www/home
[Sat Jul 26 20:42:09 2008] [error] [client 192.168.98.236] File does not exist: /var/www/home

Zrobiełem to samo na serwerze komercyjnym i jest ok :/

Ten post edytował sanchoo 26.07.2008, 19:50:15
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 3.10.2025 - 19:45