Zend Developer Zone: Reading And Writing Drupal With Flex
444698
On the Zend Developer Zone, there's a new tutorial talking about one developer's method for creating a link between Flex and Drupal to create a data entry form.   Why Flex? Because I'd like to be able to put the widget on any site and Ajax has security issues there. Web browsers, quite rightly, ensure that Ajax pages only request data from their server of origin. So it's much harder to host an Ajax widgets on external sites without kludges like IFrames or Script tag data transit. Flex allows data access from different servers. So it's far easier to write widgets that can be hosted externally.   You'll already need Drupal installed to start working with the tutorial - he chose Mac OS X as his platform of choice, but this setup will work with any installation that supports Flex. He uses the AMF protocol to interface with the PHP scripts on the backend (via AMFPHP) and a small update will need to be made to Drupal to get it to cooperate.   The rest of the tutorial shows how to create the Flex interface - making a simple information form that takes in a user's name, address and phone number and updates the Drupal contact information for them.
471146
The Zend Developer Zone is continuing on from previous parts of a series in this new tutorial posted today - part three of the "Ajax Chat Tutorial" tutorial series.   As our chat application gathers pace we return to the server side of the application. At this point we have setup the Zend Framework with an IndexController class to handle server requests. When we receive a new chat message from the user, we will need to store it. For this tutorial I've selected a file based solution using XML.   They start with a look at the storage method - XML on the backend, pushed into a MySQL database (along with the message format). There's a quick refresher on SimpleXML before they show how to integrate this storage method into the current system.
507022
On the ParanoidFerret.com blog today, there's a new tutorial showing how to get the Adobe Flex technology to talk happily with PHP over a JSON interface. Their example is a simple form that, given a person's information, finds matches from a backend XML.   To make sure we don't get too stuck in a rut with our tutorial posts I decided to branch out a little bit and talk about Adobe Flex 2.0. I recently spent a lot of time figuring out how to do this. Basically what I am going to go over here is how to use php and json to send data to your flex application, and then how to use that data in Flex.   He includes an example of the app in action plus all of the PHP and Flex code you'll need to make it work on your system. Since Flex has built-in JSON functionality, it makes it simple to query the resource and pull back the information that matches.
254804
The Zend Developer Zone has released part two of a series (here's part one posted back in November) looking at making forms for your website with the help of the PEAR HTML_QuickForm class.   I'll be discussing some of the package's non-standard form elements, teaching you how to combine elements into groups, showing you how to apply templates to control a form's appearance, and guiding you through the process of writing and registering your own custom validation rules.   There's plenty of sample code and screenshots to go around in this second part including examples of form auto-completion, multi-select elements and and example of its integration with Smarty.
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.
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.
426575
The Zend Developer Zone has posted this month's Zend Newsletter for those wanting to keep up on all things Zend-ish.   They have kindly allowed me to republish the most recent issue here for your enjoyment. If you want to read it on a regular basis though you are going to have to subscribe. So take a moment and head over to MyZend, login (or register) and on the preferences panel you'll find the checkbox to subscribe. Go ahead, we'll wait.   This edition is just a preview of all of the news that Zend provides each month on its activities, events, product updates, updates to the DevZone, and offers promotions you might want to be aware of.   As Cal mentions, though, you'll need to sign up to get future releases of the newsletter - they won't be posted over on the Zend Developer Zone.
343952
The Zend Developer Zone has posted an announcement about a new book from php|architect (authored by DevZone's own Cal Evans) - Guide to Programming with the Zend Framework.   This is a project I've been interested in since it's very beginning, mainly because I'm the author of this particular tome. [...] The php|architect web site was a bit more helpful giving a breakdown of the contents of the book and a useful quote.   The book covers topics on the framework like the parts of MVC, web services, authorization, exceptions and even some tutorials to help you get started (including a look at the brand new Zend_Layout class).
397724
Padraic Brady has put together a very comprehensive post on his blog today about using the Zend_Feed component of the Zend Framework to help with the aggregation of content from other sites (like RSS and Atom feeds).   In this entry I explore Zend_Feed from the perspective of someone aggregating RSS and Atom feeds with a view to building a database of uniquely identified content for later presentation in a "Planet" style application. [...] In fact all we create here is a simple command line script to aggregate content frequently (e.g. just set up cron to run it every hour or so) into a database for later presentation.   He guides you through each step of the way:   Setting Up Database And Models The Aggregator Script Foundation Using Zend_Feed to get common data for RSS/Atom entries Putting It All Together   There's plenty of code (and SQL to insert) in the post and he explains each point well, helping to make the development process smoother. There's even a summary section to toss in a few extra bits of information just in case you missed them along the way.
569015
In a new post to his blog today, Raphael Stolt shows how to take the output from the Zend_Log component of the Zend Framework and, with a bit of custom coding, make it output an RSS feed.   Whilst touring the web I found an interesting project for turning Apache Web Server log files into RSS feeds. This approach can be adjusted to monitor the maintenance needs of a web application deployed on an assumed productive system. Therefor a XML capable Zend_Log instance will be set up and the resulting log file will be transformed into a RSS feed via a custom Action Helper wrapping a XSLT transfomation.   He sets up the XML logger first, using the Zend_Log, Zend_Log_Writer_Stream and Zend_Log_Formatter_Xml to create the XML output from the logging. Then, with the help of the custom helper - Recordshelf_Controller_Action_Helper_Xslt - he reformats the XML output into an RSS feed ready for public consumption. (There's even a screenshot of what it might look like in a feed reader).
553589
Zend has a new tutorial posted in their PHP 101 series - PHP 101 (part 9): SQLite My Fire!
736098
Patrick Reilly has a new post today encouraging developers out there looking for an opportunity to volunteer in the community to check out the Zend Framework project's many needs.   Most components and subprojects need volunteers to help with documentation, unit test coverage, code reviews, improving integration with other ZF components, and enhancing architecture and design for the purpose of improving extensibility and ease of use with new components. If you see a subject area or component that interests you, please contact any project members currently associated with the component.   The project is starting several wiki "websites" dedicated to each of the components/efforts inside of the main framework project. Areas for these include:  Auth Team Documentation Team MVC Team Web Services Team
572982
In a new post to his blog today, Matthew O'Phinney dives in to some of the more advanced features that the Zend_Form component of the Zend Framework has to offer.   I've been working on  for the past few weeks, and it's nearing release readiness. There are a number of features that Cal didn't cover in his DevZone coverage (in part because some of them weren't yet complete) that I'd like to showcase.   These additional features include internationalization, element grouping and array support. He looks at each of these, including some sample code where needed, and shows you how they can be useful to you and your ZF application.
647262
In a new post to his blog today, Mike Potter talks about the WebORB for PHP software and a new feature based on Adobe technology - a Flex-based console.   [It] includes a service browser, as well as a number of useful examples, showing both the client side code (in Flex) and server side code in PHP. The getting started guide (again, built into the console or available on the web) provides a good tutorial for creating your first WebORB powered application.   He likes the project overall, but notes a small issue he has with starting a new project - a prompt to use the Flex Data Services. Overall, though, he has high hopes for the future of the project.
584290
Andrew Johnstone has posted some of his experience he's had developing with one of Zend's latest offerings - Zend Neon. Neon is the Zend project to bring robust PHP development functionality to the community on top of the Eclipse platform.   I've been using Zend Studio for Eclipse (beta) for several weeks in a rewrite of a framework and numerous sites at work and overall I really like the IDE. Its got some great features and being based on the eclipse project makes it really extensible and customizable.   He happy overall with the IDE but has come across some bugs in his time developing in it (nine of them) with issues ranging from the SVN functionality and samba out to small syntax sorts of things (like the auto-formatting).
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.
485840
P&aacute;draic Brady continues his series on working with Complex Views in the Zend Framework with this new article - part seven focusing on the Zend_View Enhanced method.   It's been a long, and hopefully interesting, road to Part 7. In this concluding entry to the long running, and oft delayed, "Complex Views with the Zend Framework" series I introduce the Zend_View Enhanced Proposal for the Zend Framework, elaborate on its operation, and provide some opinions on the ongoing debate over its implementation.    In this final entry of the series, he recaps previous concepts (like Partials/Layouts/Controllers/Placeholders) and how far reaching the Zend_View Enhanced component is. He also includes some of the helpers and interfaces he's proposed for the module including:   Zend_View_Helper_Partial Zend_View_Helper_Controller Zend_View_Helper_HeadScript Zend_View_Helper_Doctype Zend_View_Helper_HeadStyle   He takes each of the concepts mentioned above and applies these different helpers/interfaces inside them, illustrating with some sample code as needed.