2009/5/4 elminster <[email protected]>

> But I am not sure how to get this into the view, and how to get it to use
> my
> object. I can create a helper but it tells me that doing 'new Table()' is
> not allowed.


Normally view helpers return html; in this case you can write a table view
helper (another class) that returns a new instance of your Table class. You
can embellish the object with a fluent interface and a __toString() method
and then in the view you will do:
echo $this->table('domId', 'otherOption')->addX()->addY();


-- 
Giorgio Sironi
Piccolo Principe & Ossigeno Scripter
http://ossigeno.sourceforge.net



-- 
Giorgio Sironi
Piccolo Principe & Ossigeno Scripter
http://ossigeno.sourceforge.net

Reply via email to