Sep 10
3
e_schrade wrote a neat way of doing things in the service layer; Let’s take a quick look at something that’s kind of neat in Zend Framework. I’ve been doing some work with Adobe on some articles and one of them was on working with mobile clients with Flash. Well, me being the masochist I did more. What I did was write an example that worked as a full website, an Ajax website, a Flash service and an XML-RPC service.
Looks like a lot, right? Actually there’s not much there. Here’s the logic flow.
And with that you have an application that can serve content for multiple different types of service with almost no effort on your part. At least.. if you copy and paste this code.
Have a good Friday!!!
via Zend_Server — zf ffh zend_server on e_schrade — zend php.
Till posted this little snippet;
It’s so useful I just had to share it ![]()
Just go to your project directory and fire it off, it will help you find those pesky unmatched {}
Bill Karwin posts a useful little snippet that will list and search each class for function names that match except for the underscore prefix, private / protected functions.
What I do is I have my controllers fetch all their dependencies from the bootstrap and/or front controller. The most common example is to pull the db resource from the bootstrap:
But I also take it a step further. For example, if I’m using data mappers, I have the action controller check the front controller for the data mapper I need:
I then update your unit test to inject the posts mapper with a stub:
However, that invoke arg won’t exist in production, so I wrap that call in an if statement a la “lazy loading” style:
What this does is it allows me to stub in my stub posts mapper in my unit tests while letting the controller lazy-load the real one in production.
An alternative is to use Zend_Registry, but I find this to be a bit cleaner without the static calls.
–
Hector Virgen
Yesterday, the Zend Framework team tagged the first development milestone of Zend Framework 2.0 (2.0.0dev1). It is immediately downloadable from the Zend Framework servers:
* Zip package:
http://framework.zend.com/releases/ZendFramework-2.0.0dev1/ZendFramework-2.0.0dev1.zip
* tar.gz package:
http://framework.zend.com/releases/ZendFramework-2.0.0dev1/ZendFramework-2.0.0dev1.tar.gz
NOTE! This release is not considered of production quality, and is released solely to provide a development snapshot for purposes of testing and research. Use at your own risk.
This release is the culmination of several months of work, and incorporates the following features:
* Removal of all require_once statements.
* Migration to namespaces.
* Refactoring of the test suite, including:
* Removal of all “AllTests.php” files.
* Removal of unreferenced test classes.
* Limited refactoring to move helper classes into their own files.
* Refactoring of conditional tests.
* Rewrite of Zend\Session from the ground up. This required creation of a new component, Zend\SignalSlot, for handling observers and creating filter chains.
* Addition of a new Zend\Stdlib namespace for interfaces and utility classes; in particular, we added extensions to SplQueue, SplStack, and SplPriorityQueue to create serializable versions of these classes.
We have done some “real-world” testing of the release by building the Quick Start application, as well as migrating an existing demo application to ZF2. We were able to achieve both goals, demonstrating that while the release is certainly pre-alpha, it is definitely functional.
There is much work yet to be done. Today, we published a rough roadmap of milestones we will be working towards (1). This roadmap only addresses components with cross-cutting concerns, but serves as a guide for development in the coming months. If you are interested in contributing, be sure to sign our Contributors License Agreement (CLA), and read the “README-DEV.txt” file in the release. We also suggest you join the zf-contributors mailing list (2), and join in discussions on the #zftalk.dev IRC channel on Freenode.
[1] http://framework.zend.com/wiki/display/ZFDEV2/Zend+Framework+2.0+Milestones
[2] http://zend-framework-community.634137.n4.nabble.com/ZF-Contributor-f680267.html
–
Matthew Weier O’Phinney
Jon Lebensold posts; In the last video, I discussed ZendX_JQuery integration. Now we’re going to take it a step further by developing our own jQuery autocomplete control, using a country list, PHP 5.3 and anonymous functions.
Grab a copy of the project or browse the repository.
via Zendcasts.
Aug 10
6
Jon Lebensold posts; I’ve received a lot of feedback about jQuery integration in the Zend Framework. This little video will show you how you can quickly integrate jQuery and jQuery UI into your Zend Framework project.
Grab a copy of the project or browse the repository.
via Zendcasts.
The good old Zend Framework manual pages do suffer from being somewhat lengthy. I’ve thought they could do with an index to make navigation easier on those oh-so-long pages. So I wrote a quick JavaScript bookmarklet to do just that.
via simon r jones.
Rob Allen writes; After too many months of neglect, I have completely rewritten my Zend_Auth tutorial so that it is compatible with Zend Framework 1.10!
As an experiment, I have written it directly in HTML, rather than PDF as before and cover the login form along with the login controller code required to authenticate a user using a database table. For good measure, I’ve included logging out and a view helper to show how to access the logged in user’s details.
The full source code is also available, if you don’t want to type it in ![]()
I hope you find it useful.
Tutorial: Getting Started with Zend_Auth – Rob Allen’s DevNotes.
Jul 10
24
Jeroen Keppens writes; Recently I had to create a soap webservice. The WSDL generator put in too much, so I decided to make the WSDL myself. Luckily a colleague gave me a quick intro.
via Jeroen Keppens : Introduction to WSDL.
Cappuccino based web application to manage OpenStack compute and storage.
The OpenStack Open Source Cloud Mission: to produce the ubiquitous Open Source Cloud Computing platform that will meet the needs of public and private cloud providers regardless of size, by being simple to implement and massively scalable.
via OpenStack Web Control Panel in Launchpad.
Hosting company RackSpace is open sourcing the software behind its cloud storage and computing platforms on Monday, the company is saying. The company is also preparing to launch OpenStack, an open source cloud platform, and will donate the open source code to that project.
NASA is also incorporating technology from the NASA Nebula Cloud Platform into the OpenStack project, says RackSpace.
RackSpace says they want to drive interoperability in cloud services to avoid vendor lock-in, and help create industry standards. More than 25 companies have shown interest in the project, says RackSpace, or are actively working on the code. They include AMD, Citrix, Cloud.com, Cloudkick, CloudSwitch, Dell, enStratus, FathomDB, Limelight, Nicira, NTT DATA, Opscode, Peer 1, Puppet Labs, RightScale, Riptano, Scalr, Sonian, Spiceworks and Zuora.
The code is being released under the extremely flexible Apache 2 license, meaning third parties can redistribute the code, build proprietary software around the code, and distribute it with few restrictions.
To achieve complete Doctrine 1 integration with Zend Framework some glue is required, Benjamin Eberlei has created a complete solution thats straight forward, easy to use and understand.
This project tries to offer a complete Integration of Doctrine 1 with Zend Framework. The following components belong to this Integration:
This integration requires the latest Doctrine version 1.2.2 to work completely
Github offers SVN Read support for a while now, you can either use svn export or svn:externals to include ZFDoctrine into your project or into your PHP Include Path.
If you follow the tutorial and installation steps your will get this in ZFTool.
Read it ALL at beberlei’s zf-doctrine at master — GitHub.
Jon Lebensold post another screencast;
This video outlines a little trick I’ve found immensely helpful in larger applications: managing your css selectively. Luckily, the Zend Framework is built with some great features for handling this case using Zend_View and Zend_Layout. Enjoy!
Grab a copy of the project or browse the repository.
via Zendcasts.
Jon Lebensold posts a quick video explaining how quickly and easy it is to write designer-friendly HTML emails using Zend_View and Zend_Mail.
Grab a copy of the project or browse the repository.
via Zendcasts.
(Sorry for the late addition of this)