I wrote a DB class and I want to create my own model class in the Zend Framework. My own model extends from PDO and it automatically creates a query to work with the database.
How can I use my own model class in the Zend Framework?
I wrote a DB class and I want to create my own model class
Share
Lets say you put your class in the
models/Myclass.phpfile then your class would look something like this:-You could then use it in your controller or in another model like this:-
There is more information on Zend Framework naming conventions in the manual.