Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [ZF2][ZF] Problem z layout
aras785
post 1.09.2013, 19:44:04
Post #1





Grupa: Zarejestrowani
Postów: 859
Pomógł: 177
Dołączył: 29.10.2009

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


Witam. Mam 2 moduły, ten stand. Album i nowy: Admin.

W module Album config wyglada tak:

  1. 'view_manager' => array(
  2. 'display_not_found_reason' => true,
  3. 'display_exceptions' => true,
  4. 'doctype' => 'HTML5',
  5. 'not_found_template' => 'error/404',
  6. 'exception_template' => 'error/index',
  7. 'template_map' => array(
  8. 'layout/album' => __DIR__ . '/../view/layout/layout.phtml',
  9. 'error/404' => __DIR__ . '/../view/error/404.phtml',
  10. 'error/index' => __DIR__ . '/../view/error/index.phtml',
  11. ),
  12. 'template_path_stack' => array(
  13. __DIR__ . '/../view',
  14. ),
  15. ),


A w admin wygląda tak:

  1. 'view_manager' => array(
  2. 'display_not_found_reason' => true,
  3. 'display_exceptions' => true,
  4. 'doctype' => 'HTML5',
  5. 'not_found_template' => 'error/404',
  6. 'exception_template' => 'error/index',
  7. 'template_map' => array(
  8. 'layout/admin' => __DIR__ . '/../view/layout/layout.phtml',
  9. 'error/404' => __DIR__ . '/../view/error/404.phtml',
  10. 'error/index' => __DIR__ . '/../view/error/index.phtml',
  11. ),
  12. 'template_path_stack' => array(
  13. __DIR__ . '/../view',
  14. ),


Różni się tylko '/layout/*' ...

Nie wiem dlaczego ale pokazuje cały czas layout dla album... A jak tutaj zmienie na: 'layout/layout' to wtedy dla albumu i admin pokaże layout z admin... Wiecie o co kaman?
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Wersja Lo-Fi Aktualny czas: 6.07.2025 - 03:22