Hi Fouzia,
do you mean an action in a controller?
When so you can assign the object to a class-member an then retriev it in another action.

For a custom function you have only to create a parameter in its declaration. But that's PHP-Basic.

Greetings
Waldemar

Fouzia Usman schrieb:
Hi,
I would like to know how i can pass a Zend table or row object as a parameter to a function. For ex: class RoundTable extends Zend_Db_Table {} $table = new RoundTable(); // fetch a record from the table as a Zend_Db_Table_Row object $row = $table->fetchRow('first_name = "Robin"'); If I wanted to create a function that accepts either $table or $row as a parameter. Please let me know. Thanks in advance. Fouzia


"And a sign for them is the dead land. We gave it life, and We brought forth from it grains, so that they eat thereof. And We have made therein gardens of date-palms and grapes, and We have caused springs of water to gush forth therein. So that they may eat of the fruit thereof, and their hands made it not. Will they not, then, give thanks?" Soorah Yaasin 36:33-35
www.beconvinced.com <http://www.beconvinced.com>

Reply via email to