Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-21-2007, 09:04 PM
Junior Member
 
Join Date: Nov 2007
Posts: 1
Default helper within another helper?

Does someone have details on how to use a helper from within another helper?

A working script example would be extremely helpful.

Thanks all,
Scott
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-22-2007, 03:33 PM
Member
 
Join Date: Aug 2007
Location: Sweden
Posts: 52
Send a message via MSN to Leif.Högberg
Default

Assuming you are talking about view helpers...

Code:
class Zend_View_Helper_MyHelper
{
private $view;

public function MyHelper($foo)
{
$foo = $this->view->MyOtherHelper($foo);
return "$foo is great!";
}

public function setView(Zend_View_Interface $view)
{
$this->view = $view;
}
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:07 PM.