Zend Framework

Zend Framework


ZF Autocomplete: Zend Framework command autocompletion

6.02.2013 | 0 Comments

zend framework

Zftool is a nifty feature from Zend Framework, however It’s pretty tiring to remember all commands.

Using bash I’ve got a bunch of custom providers, and for that I have to remember all the commands or review them every time, so It’s missing a killer feature which is the bash command autocompletion.

Installation

  1. Clone it.
  2. Move it to bash completion scripts directory to be able to autocomplete zf providers and zf provider actions
  3. Enable ItI you want to run it immediately in the same opened shell you can do the following command

Note: It will be automatically available in any new shell.

Custom Providers and Caching

In case you are wondering, I’ve got many projects with many custom providers, will it autocomplete them?

The answer is YES, and it fetches the providers per directory basis. Since the fetching and filtering is a pretty heavy process, it caches the autocompleted options in /tmp/ so that it will only be slow the first time, and then it’s going to be blazing fast.

Clear ZF autocomplete cache for providers and actions

To clear the cache, you will need to delete the cache files in tmp, the following command will do the job for you.

Hope that would be helpful for you!


Create RSS Feeds with Zend Framework

3.25.2011 | 8 Comments

In this post I’ll introduce how to create RSS feeds using Zend Framework through Zend_Feed Component.

We have got some mandatory elements in the channel, and the articles. Every Channel has to have the title, description, link and description elements. The articles also have some mandatory fields, as title, link, GUID (Globally Unique Identifier) and you can import as optional parameters as you want. Read more…