![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 248 Pomógł: 38 Dołączył: 29.06.2008 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
dzisiaj zacząłem naukę ZF i już mam problem. Nie czyta mi zmiennej APPLICATION_ENV z htaccess. htaccess:
i w index.php po wykonaniu echo APPLICATION_ENV; wyświetla 'production'. Co robię źle? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 2 355 Pomógł: 533 Dołączył: 15.01.2010 Skąd: Bydgoszcz Ostrzeżenie: (0%) ![]() ![]() |
Zmień sobie w index.php na
// Define application environment defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'development')); A DirectoryIndex jest zbędny. |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 4 340 Pomógł: 542 Dołączył: 15.01.2006 Skąd: Olsztyn/Warszawa Ostrzeżenie: (0%) ![]() ![]() |
Zmień sobie w index.php na // Define application environment defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'development')); A DirectoryIndex jest zbędny. Świetne rozwiązanie (IMG:style_emoticons/default/smile.gif) . Zobacz sobie Kod print_r($_SERVER); czy pokaże APPLICATION_ENV, bo wygląda jak by getenv nie czytało zmiennej. http://pl.php.net/manual/pl/function.getenv.php |
|
|
![]() ![]() |
![]() |
Aktualny czas: 4.10.2025 - 05:55 |