Thanks for all the replies

One mistake somewhere in the DI f*cks everything up.
AND,.. I had to make an autoload_classmap, helps a lot
AND, ... I had to refactor some zend classnames and put some dependencies
like....:

  'di' => array(
    'allowed_controllers' => array(
      'Login\Controller\FormController',
     ),
    'instance' => array(
      'Zend\Db\Adapter\Adapter' => array(
        'parameters' => array(
          'driver' => 'Zend\Db\Adapter\Driver\Pdo\Pdo',
        ),
      ),
      'Zend\Db\Adapter\Driver\Pdo\Pdo' => array(
        'parameters' => array(
          'connection' => 'Zend\Db\Adapter\Driver\Pdo\Connection',
        ),
      ),
      'Zend\Db\Adapter\Driver\Pdo\Connection' => array(
        'parameters' => array(
          'connectionParameters' => array(
            'dsn'            => "mysql:dbname=" . $dbParams['database'] .
";host=" . $dbParams['hostname'],
            'username'       => $dbParams['username'],
            'password'       => $dbParams['password'],
            'driver_options' => array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET
NAMES \'UTF8\''),
          ),
        ),
      ),
    )
  )




--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Dependincy-Injector-can-t-find-instance-tp4656989p4657047.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to