Hello Everyone,
I was reading throug a zend presentation about using Zend_Db_... in combination with the MVC concept. This is the presentation i'm talking about
:
Zend Framework + Database Database Access - Fullscreen
I am currently playing around to implement this concept myself.
What I understand that i need to do is:
PHP Code:
class person extends Zend_Db_Table_Abstract{}
Now I can use something like:
PHP Code:
$pers = new person($db);
$allPers = $pers->find(123);
Why can't i do that from within my class person. To define a function selectOne() or something like that. I don't want to access my db with queries from within my controller.