/**
  * Initializes the controller before invoking an action method.
  *
  * @return void
  */
 protected function initializeAction()
 {
     parent::initializeAction();
     $this->response->setHeader('Content-type', 'application/json; charset=utf-8');
 }
Exemple #2
0
 /**
  * This method is called just before the action method is launched.
  * It can be used to do generic stuff that all actions need.
  *
  * @return void
  * @author Romain Ruetschi <*****@*****.**>
  */
 public function initializeAction()
 {
     parent::initializeAction();
     $this->initializeHelpers();
     $this->initializeResourcesPaths();
 }