View Single Post
  #1 (permalink)  
Old 04-23-2008, 07:35 PM
jsanders jsanders is offline
Junior Member
 
Join Date: Mar 2008
Posts: 3
Default Question about the use of Zend_Db_Table_abstract

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.
Reply With Quote