Hello

i have the same problem

my code is this :

public function processAction()
        {
                $params = array('host'          =>'localhost',
                        'username'      =>'root',
                                        'password'  =>'admin',
                                        'dbname'        =>'zend'
                                        );
                                                

                                        $DB = new 
Zend_Db_Adapter_Pdo_Mysql($params);
                                                $request = $this->getRequest();


                                        $data = array('first_name' => 
$request->getParam('first_name'),
                                                                        
'last_name' => $request->getParam('last_name'),
                                                                        
'user_name' => $request->getParam('user_name'),
                                                                        
'password' => md5($request->getParam('password'))
                                                );
                                                $DB->insert('user', $data);





* when i add "require_once 'Zend/Db.php';" > nothing happens i still get the
same error

* when i add 
"require_once 'Zend/Db/Adapter/Pdo/Mysql.php';"
or
"
require_once 'Zend/Loader/Autoloader.php';
$loader = Zend_Loader_Autoloader::getInstance(); > i get :
"

Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with
message 'Invalid controller specified (error)' in
D:\xampp\htdocs\zend\helloworld\library\Zend\Controller\Plugin\Broker.php on
line 336

---

in my index.php in web_root i have 

<?php
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors', true);
date_default_timezone_set('Europe/London');

$rootDir = dirname(dirname(__FILE__));
set_include_path($rootDir . '/library' . PATH_SEPARATOR .
get_include_path());

require_once 'Zend/Controller/Front.php';
Zend_Controller_Front::run('../application/controllers');

?>

do you know what could be my problem?

--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Connecting-to-a-database-PHP-Fatal-error-Class-Zend-Db-Adapter-Pdo-Mysql-not-found-tp2271807p3829462.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