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… Continue reading ZF2 events

Published
Categorized as General Tagged

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);        … Continue reading zf2 disable the view completely disable the layout within controller change view

Published
Categorized as zf2

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… Continue reading Make your life better in 30 steps

Published
Categorized as General