How could I set up custom DB adapter (I will use simple DBSimple) and then use it inside of my model? I don’t want to extend my model with Zend_Db_Table, it seems pretty useless for me at the moment.
Sorry for question, but I’m real noob in ZF.
Thank you
If you really want to have a custom adapter in the ZF sense, you have to extend their
Zend_Db_Adapter_Abstractclass and implement all methods within for use with DBSimple. If you do this, you can use the adapter with the entireZend_Dbpackage and you would also set it up like any other ZF adapter.If you don’t care about compatibility with the
Zend_Dbpackage, you just useDBSimplelike you always do. If you want to set it up during your app’s bootstrap and you are usingZend_Application, either create a custom Resource Plugin or add an_initDbmethod in yourZend_Application_Bootstrap_Bootstrap. See the chapter onZend_Applicationin the reference guide for more details on how to do this.