Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [ZF] View helpers
skowron-line
post
Post #1





Grupa: Zarejestrowani
Postów: 4 340
Pomógł: 542
Dołączył: 15.01.2006
Skąd: Olsztyn/Warszawa

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


Próbuje odpalić view helpera
mam helpera w lokalizacji application/views/helpers/Upper.php klase Application_Views_Helpers_Upper w
bootstrapie mam
Kod
    public function _initHelpersAndScriptsPath()
    {
        $this->bootstrap('view');
        $view = $this->getResource('view');
        $view->addHelperPath(APPLICATION_PATH .'/views/helpers')
            ->setScriptPath(APPLICATION_PATH .'/views/scripts');
    }

a w kontrollerze odwołuje się tak
Kod
    public function indexAction()
    {    
        $this->view->upper();
    }

Ale jak bym nie kombinował dostaje błąd
Kod
Message: Plugin by name 'Upper' was not found in the registry; used paths: Zend_View_Helper_: Zend/View/Helper/:/var/www/zend/quickstart/application/views/helpers/


--------------------
I'm so fast that last night I turned off the light switch in my hotel room and was in bed before the room was dark - Muhammad Ali.
Peg jeżeli chcesz uprawiać sex to dzieci muszą wyjść, a jeżeli chcesz żeby był dobry ty też musisz wyjść - Al Bundy.

QueryBuilder, Mootools.net, bbcradio1::MistaJam
http://www.phpbench.com/
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Laszlo85
post
Post #2





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 17.11.2011

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


Aha... dzięki, zaraz to przećwiczę smile.gif

Edit: też działa i jest prościej smile.gif

Ten post edytował Laszlo85 17.11.2011, 19:03:50
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: 19.08.2025 - 19:54