Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [ZF]problem z helperem
ukaszq
post
Post #1





Grupa: Zarejestrowani
Postów: 128
Pomógł: 0
Dołączył: 8.08.2007

Ostrzeżenie: (10%)
X----


Witam. Jestem początkujący w ZENDzie. Stworzyłem aplikację, która na
moim domowym serwerze działała prawidłowo. Kiedy przeniosłem ją na
nazwa.pl pojawiły się błędy z helperem.

Wyrzuca mi taki błąd:

  1. Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception'
  2. with message 'Plugin by name 'MenuGiant' was not found in the
  3. registry; used paths: Zend_View_Helper_: Zend/View/Helper/:./views/
  4. helpers/' in /home/inters/ftp/library/Zend/Loader/PluginLoader.php:406
  5. Stack trace: #0 /home/inters/ftp/library/Zend/View/Abstract.php(1116):
  6. Zend_Loader_PluginLoader->load('MenuGiant') #1 /home/inters/ftp/
  7. library/Zend/View/Abstract.php(567): Zend_View_Abstract->_getPlugin
  8. ('helper', 'menuGiant') #2 /home/inters/ftp/library/Zend/View/
  9. Abstract.php(334): Zend_View_Abstract->getHelper('menuGiant') #3
  10. [internal function]: Zend_View_Abstract->__call('menuGiant', Array)
  11. #4 /home/inters/ftp/application/layouts/layout.phtml(14): Zend_View-
  12. >menuGiant() #5 /home/inters/ftp/library/Zend/View.php(108): include('/
  13.  
  14. home/inters/ft...') #6 /home/inters/ftp/library/Zend/View/Abstract.php
  15. (831): Zend_View->_run('/home/inters/ft...') #7 /home/inters/ftp/
  16. library/Zend/Layout.php(796): Zend_View_Abstract->render
  17. ('layout.phtml') #8 /home/inters/ftp/libr in /home/inters/ftp/library/
  18. Zend/Loader/PluginLoader.php on line 406

Wlasnie nie wiem dlaczego sad.gif
W layout odwołuję się do niego następująco:
  1. echo $this->menuGiant();


w katalogu /application/views/helpers znajduje się plik:
menuGiant.php

A helper wygląda następująco:
  1. class Zend_View_Helper_MenuGiant {
  2.  
  3. public $view;
  4.  
  5. public function menuGiant() { ... }
  6.  
  7. }


Nie wiem co robie źle. Proszę o pomoc...
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: 22.08.2025 - 11:18