Yes when you replace it "$this->navigation()->menu()" it begins to work.
That is what I wrote here as a fix to our code.
However the interesting is, the old $this->menu() was working before 1.12.x

Best,




On Fri, Mar 14, 2014 at 12:38 PM, Frank Brückner
<d...@froschdesignstudio.de>wrote:

> Hi,
> in ZF1 there is no view helper with the name "menu". We have a
> "Navigation_Menu" helper. (http://framework.zend.com/
> manual/1.12/en/zend.view.helpers.html#zend.view.
> helpers.initial.navigation.menu)
>
> You can use the standard view helper with your own script like this:
>
> echo $this->navigation()->menu()->setPartial('path/my-menu');
>
>
> Kind regards,
> Frank
>
> Am 14.03.2014, 11:22 Uhr, schrieb scs <sasc...@gmail.com>:
>
>
>  Hello,
>>
>> Sorry for opening this issue again. I checked this issue again and saw
>> that
>> no fix or solution provided.
>> Yesterday, I had to upgrade my ZF version and had to handle this issue
>> again.
>>
>> If there is still somebody needs a solution, they can try this.
>>
>> Here is the problem causing error (in my error written below- 2nd mail
>> message in this thread):
>>
>> <ul id="menu">
>>     <?php
>>     $i=1;
>>     foreach ($this->container as $page) {
>>         ?>
>>         <li class="page-item<?php echo ($i=='1') ? '-home' : '';?><?php
>> echo ($page->isActive()=='1') ? ' current_page_item ' : '';?>"><?php echo
>> $this->menu()->setUseTranslator(true)->htmlify($page);?></li>
>>         <?php
>>         $i++;
>>     }
>>     ?>
>> </ul>
>>
>> "$this->menu()" call was causing the error. (working in 1.11.x but not
>> working in 1.12.x)
>>
>> I fixed this by replacing it with:
>>
>> "$this->navigation()->menu()"
>>
>> and then no error :-)
>>
>>
>>
>> -------------
>> scs
>>
>>
>>
>>
>>
>>
>>
>>
>> On Mon, Jan 28, 2013 at 6:59 AM, Oleg_201080 <opp20071...@gmail.com>
>> wrote:
>>
>>  Why did it work in zendframework 1.11 and didn't work 1.12? It looks that
>>> in
>>> 1.12 it's not quite compatible with 1.11. In 1.11 in application.ini
>>> appnamespace = "" worked ok, but it 1.12 doesn't work.
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://zend-framework-community.634137.n4.nabble.
>>> com/can-t-load-classes-in-Zend-Framework-1-12-1-but-
>>> worked-1-11-2-and-previous-versions-tp4658753p4658858.html
>>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>>
>>> --
>>> List: fw-general@lists.zend.com
>>> Info: http://framework.zend.com/archives
>>> Unsubscribe: fw-general-unsubscr...@lists.zend.com
>>>
>>
> --
> List: fw-general@lists.zend.com
> Info: http://framework.zend.com/archives
> Unsubscribe: fw-general-unsubscr...@lists.zend.com
>
>
>

Reply via email to