« Return to Thread: How get Zend_Controller_Dispatcher_Token from index.php

Re: How get Zend_Controller_Dispatcher_Token from index.php

by Mauro Casula :: Rate this Message:

Reply to Author | View in Thread

I have put in my  php.ini:

include_path = ".;C:\Programmi\php\ext;C:\Programmi\php\ext\incubator;C:\Programmi\php\ext\core"

inside incubator there in Zend.php of the incubator
inside core Zend.php of core.

I think there is something that i dont know because when i restart Apache and start the application
i get the error that its impossible to found Zend_registry...

... what i have to do?

Regards.

Mauro Casula.

Matthew Weier O wrote:
-- Mauro Casula <maurocasula@gmail.com> wrote
(on Monday, 13 November 2006, 08:06 AM -0800):
> I have undestand the mechanism you suggest and i'm trying to implement that..
>
> But I have a question.
> I have to write  myself this method you have suggest ?
>
> > $this->getRequest();
>
> Extending the abstract class of Plugin i dont have this method..

Again, you need to use the MVC components in the incubator; make sure
that the incubator/library/ path is before the library/ path when you
set the include_path. Zend_Controller_Plugin_Abstract::getRequest()
exists in the incubator version.

--
Matthew Weier O'Phinney
PHP Developer            | matthew@zend.com
Zend - The PHP Company   | http://www.zend.com/

 « Return to Thread: How get Zend_Controller_Dispatcher_Token from index.php