Hi all, 

I'm tryin convert some part of my project which is writed under old ZF
release (less than 1.0), but I get only this error:
Fatal error:  Call to a member function notifyPreDispatch() on a non-object
in D:\workspace\SOC IS\library\Zend\Controller\Action.php on line 492

Here is my bootstrap file:
<?php

        require_once("Zend/Loader.php");
        Zend_Loader::registerAutoload();

        $db = new Zend_Db_Adapter_Pdo_Mysql(array(
                'host'     => 'localhost',
                'username' => 'xxx',
                'password' => 'xxx',
                'dbname'   => 'xxx'
        ));             
        Zend_Registry::set('db', $db);  
        
        $view = new Zend_View;
        $view->setScriptPath("../app/views");   
        Zend_Registry::set('view', $view);              
        
        //setup the controller
        $frontController = Zend_Controller_Front::getInstance();
        $frontController->throwExceptions(true);
        $frontController->setControllerDirectory("../app/controllers"); 
        
        $frontController->dispatch();

My IndexController has indexAction() only for redirect to URI /prihlaska -
there is PrihlaskaController and his indexAction(), the error described
above displays any time, althought indexAction() is empty.
Currently I'm using ZF svn build from 17th October 2007, but ve got error
also on stable build.

Any ideas?

Thank for your help
Petr Spurny




Reply via email to