Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [ZendFramework][ZF2][ZendFramework2]Niezidentyfikowany błąd
huberthx
post 11.03.2016, 16:57:38
Post #1





Grupa: Zarejestrowani
Postów: 21
Pomógł: 0
Dołączył: 1.01.2016

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


  1. <?php
  2. return array(
  3. 'controllers' => array(
  4. 'invokables' => array(
  5. 'Product\Controller\Product' => 'Product\Controller\ProductController',
  6. ),
  7. ),
  8. 'router' => array(
  9. 'routes' => array(
  10. 'product' => array(
  11. 'type' => 'segment', //tu jest linia 11
  12. 'options' => array(
  13. 'route' => 'product[/][:action][/:id]',
  14. 'constrainst' => array(
  15. 'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
  16. 'id' => '[0-9]+' ,
  17. ),
  18. 'defaults' => array(
  19. 'controller' => 'Product\Controller\Product',
  20. 'action' => 'index',
  21. ),
  22. ),
  23. ),
  24. ),
  25. ),
  26. 'view_manager' => array(
  27. 'template_path_stack' => array(
  28. 'product' => __DIR__ . '/../view',
  29. ),
  30. ),
  31. );


Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in ... on line 11


Nie wiem w czym tkwi błąd. Za pomoc z góry dziękuję.
Go to the top of the page
+Quote Post
sf
post 14.03.2016, 13:42:18
Post #2





Grupa: Zarejestrowani
Postów: 1 597
Pomógł: 30
Dołączył: 19.02.2003
Skąd: Tychy

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


Problem jest gdzie indziej, tutaj jest wszystko ok.


--------------------
Zapraszam na mój php blog, tworzenie stron.
Go to the top of the page
+Quote Post

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: 25.07.2025 - 07:55