Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [ZendFramework][ZF2][ZendFramework2]Niezidentyfikowany błąd
huberthx
post
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

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: 23.08.2025 - 03:49