ZF2 events

Module Manager

Zend\Module\Manager: loadModules.pre
For every module:
Zend\Module\Manager: loadModule.resolve
Zend\Module\Manager: loadModule
Zend\Module\Manager: loadModules.post
Application

Successful:

Zend\Mvc\Application: bootstrap
Zend\Mvc\Application: route
Zend\Mvc\Application: dispatch
Zend\Mvc\Controller\ActionController: dispatch (if controller extends this class)
Zend\Mvc\Application: render
Zend\View\View: renderer
Zend\View\View: response
Zend\Mvc\Application: finish
On an error in route or dispatch:

Zend\Mvc\Application: dispatch.error
Zend\Mvc\Application: render
Zend\View\View: renderer
Zend\View\View: response
Zend\Mvc\Application: finish
Note that routing and dispatching is also implemented using these registered events, so you can implement “pre” and “post” hooks by changing the priority of the listener that you register.

zf2 disable the view completely disable the layout within controller change view

To disable the view completely, from within a controller action, you should return a Response object:
 [php]
< ?php
namespace SomeModule\Controller;
use Zend\Mvc\Controller\ActionController,
    Zend\View\Model\ViewModel;

class SomeController extends ActionController
{
    public function someAction()
    {
        $response = $this->getResponse();
        $response->setStatusCode(200);
        $response->setContent("Hello World");
        return $response;
    }   
}
[/php]

disable the layout within controller
 [php]

$result = new ViewModel();
$result->setTerminal(true);
return $result;
[/php]

change view
[php]
function someAction()
{
$result = new ViewModel();
$result->setTemplate(‘somemodule/somecontroller/arbitraryscript’);
}
[/php]

Free Fast Public DNS Servers List

This is my list of better, fast public dns servers and free dns server (as compare to your ISP / DSL / ADSL / cable DNS service providers dns servers). These dns servers are free to all. I was able to improve my browsing speed with following DNS servers. Use any one of the following provider.

Free Public DNS Server

=> Service provider: Google
Google public dns server IP address:

8.8.8.8
8.8.4.4
=> Service provider:Dnsadvantage
Dnsadvantage free dns server list:

156.154.70.1
156.154.71.1
=> Service provider:OpenDNS
OpenDNS free dns server list / IP address:

208.67.222.222
208.67.220.220
=> Service provider:Norton
Norton free dns server list / IP address:

198.153.192.1
198.153.194.1
=> Service provider: GTEI DNS (now Verizon)
Public Name server IP address:

4.2.2.1
4.2.2.2
4.2.2.3
4.2.2.4
4.2.2.5
4.2.2.6
=> Service provider: ScrubIt
Public dns server address:

67.138.54.100
207.225.209.66

Make your life better in 30 steps

Make your life better in 30 steps

Don’t compare your life to others’. You have no idea what their journey is all about.
Don’t have negative thoughts of things you cannot control. Instead invest your energy in the positive present moment
Don’t overdo; keep your limits
Don’t take yourself so seriously; no one else does
Don’t waste your precious energy on gossip
Dream more while you are awake
Envy is a waste of time. You already have all you need.
Forget issues of the past. Don’t remind your partner of his/her mistakes of the past. That will ruin your present happiness.
Life is too short to waste time hating anyone. Don’t hate others.
Make peace with your past so it won’t spoil the present.
No one is in charge of your happiness except you.
Realize that life is a school and you are here to learn.
Problems are simply part of the curriculum that appear and fade away like algebra class but the lessons you learn will last a lifetime.
Smile and laugh more
You don’t have to win every argument. Agree to disagree.
Community:

Call your family often
Each day give something good to others
Forgive everyone for everything
Spend time with people over the age of 70 & under the age of 6
Try to make at least three people smile each day
What other people think of you is none of your business
Your job will not take care of you when you are sick. Your family and friends will. Stay in touch.
Life:

Put GOD first in anything and everything that you think, say and do.
GOD heals everything
Do the right things
However good or bad a situation is, it will change
No matter how you feel, get up, dress up and show up
The best is yet to come
Get rid of anything that isn’t useful, beautiful or joyful
When you awake alive in the morning, thank GOD for it