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.

9 Responses to “Zend Framework 2 Beta 2 released”

  1. 1 Mark

    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 Zend\DB. 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.

  2. 2 Endijs Lisovskis

    Hi!

    Any idea when ZF 2.0 will reach 'final' version?

  3. 3 amk

    Thanks for the update.

  4. 4 Dominic Watson

    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 \Zend\View\Helper\Url.php now. I was looking to see how to define my own ViewHelpers for ZF2 but am still looking at how :D

    Cheers, Dom

  5. 5 Rob...

    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...

  6. 6 T

    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.

  7. 7 Mahe

    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

  8. 8 Rob...

    Mahe,

    In Beta 3 there will be a new View Layer.

    Regards,

    Rob...

  9. 9 Leo Xue

    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.

The views expressed in these comments are not the views of the publisher. However, we believe in the rights of others to express their legitimate views and concerns. Any legitimate complaint emailed to rob@akrabat.com will be seriously considered and the post reviewed as desirable and necessary.

Leave a Reply

Buy now!