I'm experimenting with the ZF but I'm having issues. I thought that I had fixed it, but after a quick test, I can see that it doesn't work. What I'm trying to accomplish is to use the framework by just using:
And then after initiating the Zend Loader continue developmenting, without worrying about the MVC structure.
I just tried to connect to a database on my localhost and it always displays Connected. The actual host, username, password, and dbname values are, localhost, root, no password, cms. I had changed the values to something random to test it.
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . '../library');
$connection = new Zend_Db_Adapter_Pdo_Mysql(array(
'host' => 'localhost2222',
'username' => 'root2',
'password' => '',
'dbname' => 'cms2'));