weierophinney wrote
>
> -- cmple <roman.vidyayev@> wrote
> (on Friday, 24 February 2012, 01:53 PM -0800):
>> > That should solve your problem:
>> >
>> http://zend-framework-community.634137.n4.nabble.com/View-Layer-ready-to-test-td4382619.html#a4394625
>> >
>> Hey, Thanks for the info!
>>
>> I've tried the following:
>>
>> class Module implements AutoloaderProvider
>> {
>> ....
>> ....
>>
>> public function init(Manager $moduleManager)
>> {
>> $events = StaticEventManager::getInstance();
>> $events->attach('bootstrap', 'bootstrap', array($this,
>> 'initializeView'), 100);
>> *$events->attach('bootstrap', 'bootstrap', array($this,
>> 'wireJsonStrategy'), 101);*
>> }
>>
>> public function wireJsonStrategy($e)
>> {
>> $app = $e->getParam('application');
>> $locator = $app->getLocator();
>> $view = $locator->get('Zend\View\View');
>> $jsonStrategy = $locator->get('Zend\View\Strategy\JsonStrategy');
>>
>> // Attach rendering and response strategies to view
>> $view->events()->attachAggregate($jsonRendererStrategy, 10);
>> }
>> }
>>
>> I get the following error:
>> 'Class Zend\View\View could not be located in provided definition.'
>>
>> Any ideas?
>
> This sounds like your ZF2 checkout is not up-to-date. Zend\View\View is
> part of the new view layer, which was only merged a couple days ago.
>
> --
> Matthew Weier O'Phinney
> Project Lead | matthew@
> Zend Framework | http://framework.zend.com/
> PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc
>
> --
> List: [email protected]
> Info: http://framework.zend.com/archives
> Unsubscribe: [email protected]
>
Hey Matthew,
How can I get the most up to date changes for zf2?
I've checked out the following repository:
https://github.com/zendframework/zf2.git
git pull
Already up-to-date.
I'm new to git, is there some sort of command that brings me up to the
latest changes ?
I've tried to do a local merge using the git's app, here is what I got:
Merge branch 'release-2.0.0dev3'
Conflicts:
README.txt
library/Zend/Version.php
RELEASE INFORMATION
---------------
<<<<<<< HEAD
+Zend Framework 2.0.0beta2
=======
+ Zend Framework 2.0.0dev3
>>>>>>> release-2.0.0dev3
Thanks!
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/ZF2-contextSwitch-to-json-tp4418147p4420719.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]