Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [symfony] niedziałający link
Forum PHP.pl > Forum > Przedszkole
sweter
Witam,
utworzyłem nową apikację w Symfony i kilka modułów:
Cytat
php symfony generate:app strona
php symfony generate:module strona przyklad
php symfony generate:module strona podstrony
php symfony generate:module strona glowna


Plik http://127.0.0.1/apps/strona/config/routing.yml wygląda tak:
Cytat
# You can find more information about this file on the symfony website:
# http://www.symfony-project.org/reference/1_4/en/10-Routing

# default rules
homepage:
url: /
param: { module: default, action: index }

default symfony:
ulr: /symfony/:action/*
param: { module: default }

# generic rules
# please, remove them by adding more specific rules
default_index:
url: /:module
param: { action: index }

default:
url: /:module/:action/*


I teraz pytanie: czemu po wpisaniu w przeglądarkę http://127.0.0.1/przyklad/index wyświetla mi się błąd 404?
Pawel_W
a mod_rewrite chodzi?
sweter
Tak
BTW: a w folderze głównym nie powinno być pliku .htaccess?

Dodam, że po wejściu na adres http://127.0.0.1/sf_sandbox/przyklad/index pojawia mi sie "6"
Czy to dobrze??

Dodam też, że po wejściu na http://127.0.0.1/sf_sandbox/web/ wyświetla mi się strona bez CSS'ów i grafiki.

Plik ...lib/vendor/symfony/data/bin/check_configuration.php wygląda tak:
Kod
********************************
* *
* symfony requirements check *
* *
********************************

php.ini used by PHP: /etc/php5/apache2/php.ini


** Mandatory requirements **

OK PHP version is at least 5.2.4 (5.2.10-2ubuntu6.4)

** Optional checks **

OK PDO is installed
OK PDO has some drivers installed: mysql
OK PHP-XML module is installed
[[WARNING]] XSL module is installed: FAILED
*** Install and enable the XSL module (recommended for Propel) ***
OK The token_get_all() function is available
OK The mb_strlen() function is available
OK The iconv() function is available
OK The utf8_decode() is available
OK The posix_isatty() is available
[[WARNING]] A PHP accelerator is installed: FAILED
*** Install a PHP accelerator like APC (highly recommended) ***
[[WARNING]] php.ini has short_open_tag set to off: FAILED
*** Set it to off in php.ini ***
[[WARNING]] php.ini has magic_quotes_gpc set to off: FAILED
*** Set it to off in php.ini ***
OK php.ini has register_globals set to off
OK php.ini has session.auto_start set to off
OK PHP version is not 5.2.9
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.