Zend Framework 2 Beta 2 released
Zend Framework 2, Beta 2 has been released!
The key new features are:
- Refactored Mail component
- Refactored Cache component
- MVC updates
Check out Matthew’s blog post for the full details.
I’ve also updated my tutorial. This is a good time to get involved, try it out and let us know what you like/dislike.
Hi Rob,
First of all I would like to thank you for your first book. It helped me get into the Zend Framework in a big way.
I was wondering if you could provide a version of your tutorial that uses Doctrine 2 instand of ZendDB. I'm very interested in how to go about this and have not been able to find anything anywhere covering this topic. Cheers, and thanks again for all your work.
Hi!
Any idea when ZF 2.0 will reach 'final' version?
Thanks for the update.
I think the following is wrong:
"The url() view helper that is defined in the Application module is used to create the links we need."
I remember seeing the url view helper defined in Application in the previous versions of Skeleton but not anymore. I see it in ZendViewHelperUrl.php now. I was looking to see how to define my own ViewHelpers for ZF2 but am still looking at how :D
Cheers, Dom
Thanks Dominic,
You are, of course, right :)
To see how a view helper is done, look at ZfcUser:
1. https://github.com/ZF-Commons/ZfcUser/blob/master/src/ZfcUser/View/Helper/ZfcUserIdentity.php
2. https://github.com/ZF-Commons/ZfcUser/blob/master/config/module.config.php#L198
Regards,
Rob…
Hi,
It seems there is a bug in changing layouts
as per my previous submission in the tutorial post http://akrabat.com/zend-framework/updated-tutorial-for-zend-framework-2-beta-1/#comment-107064
Though $this->layout()->getLayout() returns the name/path of the newly selected layout… the layout does not change with any of the following commands…
within a controller
$this->getLocator()->get('view')->layout()->setLayout('layouts/ajax.phtml');
$this->getLocator()->get('view')->layout()->setLayout('ajax');
$this->getLocator()->get('view')->layout()->disableLayout();
within a view phtml file
$this->layout()->setLayout('layouts/ajax.phtml');
$this->layout()->setLayout('ajax');
$this->layout()->disableLayout();
I posted a work around in the comment but by no means is it efficient/perfectly written because I am a ZF Newbie.
Hi Rob,
$this->getLocator()->get('view')->layout()->disableLayout(); is not only the problem. I use Json action Helper which normally does ->
disable the viewRenderer
disable the layout
json_encode the array
but with ZF2 it is not the case and are there any possibilities to do $this->_helper->viewRenderer->setNoRender() within the ZF2 as ZF2 doesnot have any __helper attr anymore..
Thanks in advance
Mahe,
In Beta 3 there will be a new View Layer.
Regards,
Rob…
I am trying ZF2 beta 2 and find thatlayout()->content ?> seems not working any more.
Currently I can only display the content in layout by using "$this->raw('content')".
Is there any way else I can use to display content before beta 3 is released?
thank you.