Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [ZendFramework] Własny helper i dziwny błąd
pgrzelka
post
Post #1





Grupa: Zarejestrowani
Postów: 313
Pomógł: 24
Dołączył: 9.08.2008
Skąd: Kielce

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


struktura mojej aplikacji


application
-bootstrap.php
-configs
-controllers
-models
-views
--layouts
--scripts
--helpers
---Kategorie.php

w bootstrapie mam
  1. protected function _initMenu()
  2. { $view = $this->getResource('view');
  3. $view->addHelperPath('/application/views/helpers/', 'Helper');
  4. }


plik /views/helpers/Kategorie.php
  1. class Helper_Kategorie {
  2.  
  3. function kategorie()
  4. {
  5. return 'lorem ipsum';
  6. }
  7.  
  8. }


w /views/layouts/default.phtml mam
  1. echo $this->kategorie();


w przeglądarce helper zwraca 'lorem ipsum'
i dostaje taki błąd

Cytat
Plugin by name 'Kategorie' was not found in the registry; used paths: Zend_View_Helper_Navigation_: Zend/View/Helper/Navigation/ Helper_: /application/views/helpers/ Zend_View_Helper_: Zend/View/Helper/:/home/pgrzelka/domains/opisygg.aiba.pl/application/views/helpers/


dlaczego wyskakuje taki błąd?


--------------------
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 Aktualny czas: 21.08.2025 - 12:42