Tuesday, May 8, 2012

How to check if a controller exists using Zend Framework

Have you ever wondered how to check if a controller/action exist in zend FM from any side of app ? Here is the code

        $front = Zend_Controller_Front::getInstance();
        $dispatcher = $front->getDispatcher();

        $test = new Zend_Controller_Request_Http();
            'action' => 'index',
            'controller' => 'content',


        if($dispatcher->isDispatchable($test)) {
            echo "yes-its a controller";
            //$this->_forward('about-us', 'content'); // Do whatever you want
        } else {
            echo "NO- its not a Controller";

Tuesday, March 20, 2012

cool js beautifier


Just fond a good js beautifier at http://jsbeautifier.org/ , you can use it for extracting minified js too ,

Wednesday, February 15, 2012

facebook heatmap

Here is how facebook heat-map look like ..

more on -


Monday, February 13, 2012

WordPress Plugins that Boost up your Blog

Search Regex
Bing 404
WordPress SEO
Hyper Cache
FB Open Graph
404 Email Notifier
Smart YouTube
WP Optimize
Debug Queries
Auto Post Thumbnail
Regenerate Thumbnails
Google XML Sitemaps
XML Video Sitemap
Date in a Nice Tone

.. more you can find on -- http://www.labnol.org/software/must-have-wordpress-plugins/14034/

Friday, February 3, 2012

Add custom domains to Your openshift account

Hurray !!

It is now possible to use rhc-ctl-app -a appname -c add-alias --alias www.mydomain.com

and then in your DNS management for mydomain.com you can add a cname to point www.mydomain.com to app-namespace.rhcloud.com.

Wednesday, January 11, 2012

A cool audio player for ubuntu "Clementine"

Hey Ubuntu lovers ,

Just got my attention on one cool audio player "Clementine" which can be installed on ubuntu .
Check it out , no more descriptions ;)
command :
sudo apt-get install clementine