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.