« 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

Hi,
thank you for your help..

I have in C:\Programmi\php\ext\incubator
Zend.php of incubator and all the library of incubator and in
C:\Programmi\php\ext\core
Zend.php of core and all the library of core.

The application run without problems if i put:
 ".;C:\Programmi\php\ext;C:\Programmi\php\ext\core;C:\Programmi\php\ext\incubator"

But I need to use the new classes of incubator... I dont know how to use this new classes...

I hope that i have explained better my problem...


Thank you all for your help.
Mauro Casula.

Abu Hurayrah-2 wrote:
Mauro,

I think you need to be including the /library/ directory of both the
incubator and the core, not just the entire Zend directory or Zend.php.

So, for example, if you have the zend framework release in the directory
C:\Programmi\zf-release-0.2.0, then you want to include in PHP
C:\Programmi\zf-release-0.2.0\library.  Always include the /library/
directory.

I hope this helps!

Mauro Casula wrote:
> 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