Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][Zend Framework] Problem ze startem, 400 Bad Request
McGoo123
post
Post #1





Grupa: Zarejestrowani
Postów: 67
Pomógł: 0
Dołączył: 22.10.2006
Skąd: Wrocław

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


Witam,

Rozpoczynam przygodę z Zend Framework-iem i mam mały problem, korzystajac z http://blog.heavymind.net/zend-framework-tutorial/ krok po kroku zgodnie ze wskazówkami dotarłem do punktu "Plik index.php" i przy próbie wywołania dla testu localhost/zf-tutorial/ zamiast błeu :
"Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception'
with message 'Invalid controller specified (index)' in..."

pojawia się :

Bad Request
Your browser sent a request that this server could not understand.

Apache/1.3.31 Server at 127.0.0.1 Port 80


Co robie nie tak (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) (IMG:http://forum.php.pl/style_emoticons/default/worriedsmiley.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
itson
post
Post #2





Grupa: Zarejestrowani
Postów: 40
Pomógł: 0
Dołączył: 3.01.2007

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


mam podobny problem
zmieniłem .htaccess, teraz wygląda tak:
<span style="font-weight: bold;"><a href="http://pl.php.net/Options +FollowSymLinks +ExecCGI<IfModule mod_rewrite.c> RewriteEngine on RewriteRule !.(js|ico|gif|jpg|png|css)$ index.php php_value include_path ".:/usr/php5/lib/" # uncomment the following line, if you are having trouble # getting no_script_name to work #RewriteBase / # we skip all files with .something RewriteCond %{REQUEST_URI} \..+$ RewriteCond %{REQUEST_URI} !\.html$ RewriteRule .* - [L] # we check if the .html version is here (caching) RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f # no, so we redirect to our front web controller RewriteRule ^(.*)$ index.php [QSA,L]</IfModule># big crash from our front web controllerErrorDocument 500 "<h2>Application error</h2>symfony application failed to start properly"" title="Zobacz w manualu PHP" target="_manual">
Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule !.(js|ico|gif|jpg|png|css)$ index.php
php_value include_path ".:/usr/php5/lib/"

# uncomment the following line, if you are having trouble
# getting no_script_name to work
#RewriteBase /

# we skip all files with .something
RewriteCond %{REQUEST_URI} \..+$
RewriteCond %{REQUEST_URI} !\.html$
RewriteRule .* - [L]

# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f

# no, so we redirect to our front web controller
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

# big crash from our front web controller
ErrorDocument 500 "<h2>Application error</h2>symfony application failed to start properly"
</a></span>

problem ciągle pozostał


edit:
przekopiowałem symfony do katalogu C:\usr\apache\httpd\html i działa, wcześniej miałem w C:\usr\krasnal\www

Ten post edytował itson 10.03.2008, 15:41:29
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: 15.10.2025 - 02:46