0

Say i am fetching a single row by using

$row=$model_produc->fetchRow();
it contains category_id but not category_name, i will fetch category name from the category table.


My Question is that how can i add new attribute in $row say $row->category_name ???? Thanks in Advance.

Imran Naqvi
  • 2,202
  • 5
  • 26
  • 53

1 Answers1

1

You could create a new object, copying values from $row and adding your own.

hummingBird
  • 2,495
  • 3
  • 23
  • 43