-- Mauro Casula <[EMAIL PROTECTED]> wrote
(on Tuesday, 14 November 2006, 03:05 AM -0800):
> Adding 
>     require_once 'Zend/Registry.php';
> this error disappear.. but i have this:
> 
> Fatal error: Call to undefined method Zend_Controller_Front::getinstance()
> in C:\Progetti\Kettler\SITE\kettler\www\index.php on line 68
> 
> So i have sobstitute in my index.php:
>    $controller = Zend_Controller_Front::getInstance(); 
> with:
>   $controller = new Zend_Controller_Front(); 

getInstance() was removed in the incubator component. Basically, we saw
no reason to force a singleton instance, and having the singleton
resulted in a testing nightmare.

> but in this case i get this error:
> 
> Fatal error: Call to undefined method ReflectionClass::newInstanceArgs() in
> C:\Programmi\php\Zend\incubator\library\Zend\Controller\Dispatcher.php on
> line 391
> 
> I think that i'm too much dependent on Core classes... 
> 
> Anyone know what can be the problem?

Yep. Upgrade your PHP version to at least 5.1.4, which is the minimum
supported version for framework. The method you indicate above,
ReflectionClass::newInstanceArgs(), is part of PHP's Reflection API, and
needs to be present for the current version of the dispatcher to work.
To my knowledge, it's been in PHP since 5.1.2.


-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to