[fw-general] Re: ZF2 Access controller name/action from layout?

2012-05-18 Thread cmple
I finally solved it.. // Module.php public function init(Manager $moduleManager) { $sharedEvents = $moduleManager-events()-getSharedManager(); $sharedEvents-attach('bootstrap', 'bootstrap', array($this, 'initializeView'), 100);

[fw-general] Re: ZF2 Access controller name/action from layout?

2012-05-18 Thread Marco Pivetta
Careful, I would not just blindly overwrite them. Leave the ones that are currently set, or make that logic configurable :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 18 May 2012 15:37, cmple [via Zend Framework Community] ml-node+s634137n4644518...@n4.nabble.com

[fw-general] Re: Existing PHP application code into Zend framework.

2012-05-18 Thread Marco Pivetta
Did you read about the autoloader? http://framework.zend.com/manual/en/zend.loader.autoloader.html Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 17 May 2012 07:37, Sbeeram [via Zend Framework Community] ml-node+s634137n4642578...@n4.nabble.com wrote: Hi, I am

[fw-general] How to include common files in Zend framework which are used in existing PHP project.

2012-05-18 Thread Sbeeram
Hi, How to include common files in Zend framework which are used in existing PHP project. Thanks, Sbeeram -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/How-to-include-common-files-in-Zend-framework-which-are-used-in-existing-PHP-project-tp4642579.html

[fw-general] Re: ZF2 Access controller name/action from layout?

2012-05-18 Thread cmple
Marco Pivetta wrote Careful, I would not just blindly overwrite them. Leave the ones that are currently set, or make that logic configurable :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 18 May 2012 15:37, cmple [via Zend Framework Community]

Re: [fw-general] Re: ZF2 Access controller name/action from layout?

2012-05-18 Thread Marco Pivetta
I simply mean that you should check as following (pseudocode): $viewModel = $controller-getEvent()-getViewModel(); if (!$viewModel-getVariable('controller')) { $viewModel-setVariable('controller', $route-getParam('controller')); } Marco Pivetta http://twitter.com/Ocramius

Re: [fw-general] Re: ZF2 Access controller name/action from layout?

2012-05-18 Thread sina miandashti
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

[fw-general] Re: ZF2 Access controller name/action from layout?

2012-05-18 Thread cmple
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

Re: [fw-general] Re: ZF2 Access controller name/action from layout?

2012-05-18 Thread sina miandashti
no On Fri, May 18, 2012 at 11:36 PM, cmple roman.vidya...@gmail.com wrote: sina miandashti wrote im getting this error : Fatal error: Uncaught exception 'Zend\Stdlib\Exception\InvalidCallbackException' with message 'Invalid callback provided; not callable' in