Check YouTube Video Existence with Zend_Gdata_YouTube
The Video Has Been Removed?! Have you ever seen the famous message on YouTube: “This video has been removed by the user.”, but what if you’re trying to grab that video via the Zend_Gdata_YouTube? That...
View ArticleDownload Files with Zend Framework
Download a File The title may sound unclear enough, but the task is simple. You’ve to make a file download process within a Zend Framework’s controller. Let’s assume we’ve the DownloadController setup:...
View ArticleJSON and Zend Framework? – Zend_Json
That’s really a good Zend Framework’s class that help you do the encode/decode job very easily. First of all it escapes everything for you and second it prints a correct/valid code. Note that sometimes...
View ArticleRedirect with Zend Framework
Once I wrote about redirecting with Zend Framework, but what I missed back than was a common mistake. Although the code from my post is working, to be completely correct after redirecting I’d to add an...
View ArticleBind Zend Action with Non-Default View – Part 2
Typical Setup Typically Zend Framework is setup to bind every controller’s action to a specific view. The names of the action and the view script must be the same, or at least must be similar –...
View ArticleZend Framework: Simple Acl Front Controller Plugin
Almost every web site need some abstraction over the access control list (ACL) to grant access of its users. As usual Zend Framework has quite good mechanism to deal with this – Zend_Acl. Out in the...
View ArticleMedia RSS and ZF – Part 2
Here’s the promised chunk of code making the most simple bridge between Zend Framework and Media RSS. Step 1 Just add a simple action in a controller: class IndexController extends...
View ArticleZend_Validate_Db_RecordExists in Zend Framework 1.10+
Zend_Validate_Db_RecodExists is an extremely useful validator in Zend Framework when you’d like to be sure that a give row exists. Now it seems to be even better. Before you could check for a specific...
View ArticleModels in Zend Framework – Initialize All Methods with init()
In the Zend Framework’s documentation there are lots of examples how you can initialize all the actions in a given controller – by simply adding the init() public method in the controller’s code:...
View ArticleHow to Overcome Zend_Cache_Frontend_Page’s Problem with Cookies
Zend_Cache_Frontend_Page First of all there are several things to know about Zend Framework and caching. Whenever you work on a big web application caching is one of the mostly used mechanisms of...
View Article