March 29, 2013

Bootstrap modal in center

Showing up bootstrap.js modal dialog into center, when we dont use default width.
 
here is the hack:
 

        $("#headerPreview").modal('show').css(
        {
            'margin-top': function () {
                return -($(this).height() / 2);
            },
            'margin-left': function () {
                return -($(this).width() / 2);
            }
        })



Source: https://github.com/twitter/bootstrap/issues/374


Cheers!

March 23, 2013

Zend Framework Basics

Zend Framework, is basically, collection of component,
when put together, we can build web-app relatively faster and stronger.

While, we can use indiviual component too.



Comes up with basic componanents:

Zend_Controller
Zend_Layout
Zend_Config
Zend_Db
Zend_Db_Table
Zend_Registry