开发者

how to use a function within same function zend framework

Hii...

I have a function something like this...

class Zend_View_Helper_RenderUOList extends Zend_View_Helper_Abstract {

    public function makeUOList($inputArray, $main = true, $id ="", $class="")
    {
      ------
      ------
      ------
      $output .= "<li>" . $value['name'] . "\n";
      $output .=  makeUOList($value, false, '', '');
      $output .= "</li>\n";

and I am trying to call the same function within the function and I am getting a error mess开发者_如何学Goage as Fatal error: Call to undefined function makeUOList() in C:\dev\workspaces\adxweb\library\Zend\View\Helper\RenderUOList.php on line 99

Any help where I am going wrong... thanx in advance.


Maybe because it's class method? :)

$this->makeUOList...


Zend has a view helper for generating ordered and unordered lists, take a look at Zend_View_Helper_HtmlList.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜