sina miandashti wrote
>
> no
>
>
>
> On Fri, May 18, 2012 at 11:36 PM, cmple <roman.vidyayev@> wrote:
>
>>
>> sina miandashti wrote
>> >
>> > im getting this error :
>> >
>> > Fatal error: Uncaught exception
>> > 'Zend\Stdlib\Exception\InvalidCallbackException' with message 'Invalid
>> > callback provided; not callable' in
>> >
>> D:\xampp\htdocs\ttacounting\vendor\ZendFramework\library\Zend\Stdlib\CallbackHandler.php
>> > on line *82
>> > *Zend\Stdlib\Exception\InvalidCallbackException: Invalid callback
>> > provided;
>> > not callable in
>> >
>> D:\xampp\htdocs\ttacounting\vendor\ZendFramework\library\Zend\Stdlib\CallbackHandler.php
>> > on line *82
>> >
>> >
>> > *my code :
>> >
>> > https://gist.github.com/2726585*
>> >
>> >
>> > *
>> > actually this line make the error :
>> >
>> > $sharedEvents->attach('bootstrap', 'bootstrap', array($this,
>> > 'initializeView'), 100);
>> >
>> >
>> >>
>> >
>> >
>> > --
>> > ________________
>> > Sincerely
>> > Sina Miandashti
>> > www.InTheMix.ir & www.InvisionPower.ir Admin
>> >
>> Do you have the initializeView($e) function in your Module.php?
>>
>> --
>> View this message in context:
>> http://zend-framework-community.634137.n4.nabble.com/ZF2-Access-controller-name-action-from-layout-tp4624104p4644950.html
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>> --
>> List: [email protected]
>> Info: http://framework.zend.com/archives
>> Unsubscribe: [email protected]
>>
>>
>>
>
>
> --
> ________________
> Sincerely
> Sina Miandashti
> www.InTheMix.ir & www.InvisionPower.ir Admin
>
// Module.php
..
public function initializeView($e)
{
$app = $e->getParam('application');
$basePath = $app->getRequest()->getBasePath();
$locator = $app->getLocator();
$renderer = $locator->get('Zend\View\Renderer\PhpRenderer');
$renderer->plugin('url')->setRouter($app->getRouter());
$renderer->doctype()->setDoctype('HTML5');
$renderer->plugin('basePath')->setBasePath($basePath);
}
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/ZF2-Access-controller-name-action-from-layout-tp4624104p4645719.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]