Probably don't want to call it Zend_View_Helper_LoadMap. Sanchez_View_Helper_LoadMap or whatever would be better. Just to remember to add your helper directory in the bootstrap. -Matt
On Thu, Jul 10, 2008 at 8:13 PM, Christian Sanchez <[EMAIL PROTECTED]> wrote: > Sorry guys, find the fix on the net... > > class Zend_View_Helper_LoadMap > { > public $view; > > public function setView(Zend_View_Interface $view) > { > $this->view = $view; > } > > function loadMap() > { > echo $this->view->render('map.phtml'); > } > } > > 2008/7/10 Christian Sanchez <[EMAIL PROTECTED]>: > > I'm trying to create a view helper to load a GMap in a view when needed >> only, hence the helper... I know it's just a crappy view helper but I don't >> get the hang of this... How can I render a .phtml when I call the helper? >> >> <?php >> >> class Zend_View_Helper_LoadMap >> { >> function loadMap() >> { >> echo $this->render('map.phtml'); >> } >> } >> >> ?> >> >> -- >> Christian Sánchez A. > > > > > -- > Christian Sánchez A.