KillerPHP.com: Zend Framework Components Part 2: Zend_View
84118
KillerPHP.com has a new articles posted today looking at another one of the components of the Zend Framework - Zend_View.   As part of a series of articles about the Zend Framework and MVC, I'd like to take some time and cover Zend_View (the 'V' in that MVC triad).   He touches on where the Zend_View component's place in life is and even includes some sample code to show one in action (along with an explanation of what it's doing).
515251
In a new post to his blog, Rob Allen takes a look a a package inside of the Zend Framework - one that allows for much more flexibility with the way your site flows.   One of the new features to hit the Zend Framework since 0.7 is Zend_Controller_ModuleRouter and its sibling Zend_Controller_ModuleRewriteRouter. This allows for separating out sets of controlers, models and views into their own modules.   He gives both a directory structure and PHP code example of it in action, both in how it normally functions (looks for a controller with the same name as the request) and an example of how he thinks it should work - complete with code and a directory structure to compare to the previous example.
242013
Popular posts from PHPDeveloper.org for the past week:ProDevTips.com: Writing a CMS/Community with Smarty and the Zend Framework: Part 6Nessa's Blog: Using an .htaccess with PHP Compiled as CGIArnold Daniels' Blog: How I PHP: The Output Handler - ContinuedMartynas Jusevicius' Blog: PHP 5 features: Class autoloadingSean Coates' Blog: Actually Solving a Problem (believe it or not)The Northclick Blog: Message Queue Project: First working versionStefan Mischook's Blog: A Question about object properties in PHP ClassesJob Posting: G2 Technology Seeks PHP Developer (Memphis, TN)Rob Allen's Blog: Zend_View: Access the view from a view helperDavid Walsh's Blog: Using PHP Generic Objects To Organize Your Code
393458
Richard Lord has posted some thoughts about why he likes one of his latest explorations - the Zend Framework - on his blog today.   I've been researching the Zend Framework for PHP in relation to a project I'm working on and I have to say I'm now a fan of it. There's lots to like about it, and some to dislike about it too. But to me the best aspect of it is the flexibility it offers.   He also mentions other reasons for liking it, including the simplicity of working his current application/workflow into the Framework's methods. There is one hit he mentions that the Framework team could improve on - the documentation.
388493
ProDevTips.com has posted part nine of their long-running series about using the Zend Framework (and Smarty) to create a CMS/Community website.   This piece covers creating a proper folder structure so that we can have a skin system. I've also created a folder for the admin section which is fully contained with it's own controllers folder and so on. Another unrelated change that has happened since the last part is sub menu logic which we will also take a look at.   They make updates to the bootstrap file to introduce another controller directory and, inside of that, create the Administrator controller and integrate it with a Smarty template to show different menu items if an admin user is logged in.
580090
Rob Allen bids a fond farewell to a part of the Zend Framework that's been there since the beginning - the Zend.php file and all of its associated classes.   This is good news as the Zend class was schizophrenic and provided functions responsible for file loading, registry, debugging and version information! Another side effect is that the entire Zend Framework is stored within the Zend directory making those who use svn:externals on their lib directory happier.  He mentions some of the other classes that have replaced it including the Zend_Loader and Zend_debug components) and changes to the Zend_Filter component too. Rob has also updated his tutorial to match this latest version for those just starting out.
712403
The Zend Developer Zone has posted their latest episode of their PHP Abstract podcast series - an interview with Sean Coates (of php|architect).   Today we are going to do something a little different. I was privileged to attend php|works in Atlanta. While there, between tasks, Sean Coats agreed to sit down with me and talk for a bit. Given his level of participation in php|works I was grateful for any time he was able to spare. Come listen as we talk about his work at php|architect, work on the PHP manual and programming in general. This is the first of a couple of interviews I was able to do at php|works.   As usual, you can grab just the mp3 directly, or you can subscribe to their feed and get this and tons more great PHP-related content (including talks on things like PHP and Oracle, attracting talent and looks at several of the popular frameworks like CodeIgniter, Solar and the Zend Framework).
654789
Padraic Brady has posted today about a subclass of the Zend_Loader package (in the Zend Framework) he had written up to handle Dependency Injections - it was submitted but ended up being replaced with a Zend_Di component instead.   I realised someone had proposed a novel new component called Zend_Di, and that small change was since accepted by Federico into his DI buster. This is a quick overview with very simple use cases - read the full proposal for even more gory details about your object innards using DI.   He talks about what DI (dependency injection) is and what it can be used for and includes a simple example set around a controller in the framework that uses the Zend_Di component to make a "mock Zend_Mail" that can be used in testing too. Examples of these sorts of tests (with PHPSpec) are included too.
151253
On the Zend Developer Zone, Matthew O'Phinney has posted an announcement about the latest development on the Zend Framework front - the ViewRenderer module.    Yesterday, I committed a change to core in preparation for the 1.0.0RC1 release that, while breaking backwards compatibility slightly, will also greatly simplify the integration between the controller and view components.   One developer, Ralph Schindler, felt it didn't go far enough, and posted an issue in the framework issue tracker detailing an idea he had for adding more integrated View dependency injection to Zend_Controller_Action. After some thought and discussion with him, I countered with a new action helper, the ViewRenderer.    This new bit of functionality allows you to get rid of those pesky view objects in Controllers, set default rendering options for the controllers, let you autorender view scripts based on the current action and much more.   Check out the post for some example code.
565362
Popular posts from PHPDeveloper.org for the past week:DeveloperTutorials.com: Writing an Email Autoresponder Script with PHPJaybill McCarthy's Blog: 10 PHP Myths DispelledIBM developerWorks: Mastering regular expressions in PHP, Part 1Job Posting: OmniTI Seeks PHP Talent (Brooklyn, NY)Zend Developer Zone: php|architect Announces 'Programming with the Zend Framework'DeveloperTutorials.com: Create a Facebook Application With PHPRob Allen's Blog: New Zend Framework Blog/WebsiteMichael Kimsal's Blog: Ecommerce system ideasJob Posting: Buildersite.co.uk Seeks PHP Programmer/Web Developer (Central London)Zend Developer Zone: Debugging PHP applications with xdebug
636915
Popular posts from PHPDeveloper.org for the past week:RefreshinglyBlue Blog: PHP vs Ruby - Practical Language DifferencesAndreas Gohr's Blog: Determine StumbleUpon RankingsPHP.net: PHP 5.2.4 ReleasedThe Bakery: Five New Posts - Custom Views, CSS, ViewInFile, ActsAs and Email ValidationPHPBuilder.com: File uploads made easyStefan Mischook's Blog: Turning on display_errors in WAMP - Video Tutorialphp|architect: Pro::PHP Podcast - Newscast for August 2007MT-Soft Blog: Creating a secure PHP production environment from Source CodeCommunity News: Andi Gutmans to Present at AjaxWorld 2007HowTo Forge: How To Set Up A Facebook RSS Feed Reader
465884
Cal Evans has made a new post to the Zend Developer Zone gathering together all the slides he could find from the recent Zend/PHP Conference & Expo (2007):   Most of these have already been posted on the speakers blogs. However, I thought it would be a good idea to gang them all together on one post for those who are looking for them. I've also linked to the blog posts of any speakers who blogged about ZendCon as well. Watch this page for updates, as new slides come in, I'll update the page.   If you were a speaker at the conference and you don't see your slides linked, send Cal at note at cal [at] this domain with your info.
238267
In a new post today, Mike Naberezny talks about some updates that have been made to the XML-RPC client included with the Zend Framework, spotlighting three items in particular.   A few weeks ago, I rewrote the Zend XML-RPC client as part of a customer project at Maintainable. After fixing a fair number of bugs and writing a test suite, I made some enhancements and usability improvements. You can learn more about the new XML-RPC client from its documentation.    The three new updates to the package deal with:  Calling remote methods (a new call() method) Server proxy objects have been added Faults are thrown as PHP exceptions  Get more details on this package from its page on the Zend Framework's website.
486082
Padraic Brady has posted some of his comments on the newly included Zend_Layout and Zend_View_Enhanced components for the Zend_Framework:    These two (now much more polished!) components were both designed to solve the concerns a lot of developers were having in achieving truly complex, structured and modular Views using Zend_View.    Indeed there are months of blog postings, debates, experimental and not-so-experimental code, proposals, IRC sessions and countless emails pouring over how to accomplish the goals of these components. The end result is something I feel will serve Zend Framework users faithfully for months and years to come.    He thanks the developers (Matthew and Ralph) and notes that the inclusion of these two components is one of the largest advancements of the display layer for the Framework in a while.
326223
Cristian Bichis sent along a message today reminding us about the unofficial Zend Framework forums that's been started over on zfforums.com:   This is the only forum dedicated to the Zend Framework (in English) and several users have already joined with lots of topics started including MVC, Zend_Db, Concepts related to the framework and Ideas about it and its future. So, join up yourself and talk with other Zend Framework developers at zfforums.com.   There's already some decent activity over there - around 120 members with over 350 posts going - not too bad considering they've just started up. Head on over, get yourself signed up and start participating in the discussion to help build these forums into a great resource for Zend Framework developers everywhere.
655160
The Zend Developer Zone has an announcement about another "Webinar Wednesday" that Zend is putting on June 20th focusing on the Zend Framework (version 1.0).   The Zend Framework is emerging as the preferred PHP programmer's toolkit for designing Web applications with best practices. In the month's prior to the 1.0 release, Zend Framework had over 1 million downloads and multiple commercial products are already being developed with Zend Framework. In this webinar, Bill Karwin, Product Engineering Manager, will provide an overview of the design philosophy, the major components of the framework and its future directions. Topics will cover MVC, Search, Data Access, Web Services, Filter, Authentication, Cache and more.   You can sign up by going to the conference's website and entering all of your information. Details on how to connect and when will be sent to your email. The event if free of charge, so there's no reason not to come and get the latest scoop on this powerful framework's upcoming version.
264910
Scott Mattocks, like so many others, has just reciently recieved notification that he's been accepted as a speaker for the Zend/PHP Conference & Expo this fall. He talks more about his speech in his latest post.   My session, "Consusming Web Services with PHP-GTK 2&#8243; will be a look at how to turn a web services API into a desktop application. I only have fifty minutes so it won't be very heavy on implementation details. Instead it will look more at representing different data structures, collecting different types of data and how creating a desktop application can make life easier for the company and the end user.   Scott joins other speakers for this great event, including speakers like Ilia Alshanetsky, Wez Furlong, and Zeev Suraski. Be sure to check back on the Zend site soon to see when Scott and others' talks will be held.