SHARE
TWEET

Untitled

a guest Dec 9th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {
  3.     ...
  4.     protected function _initViewHelpers() {
  5.         $this->bootstrap('layout');
  6.         $layout = $this->getResource('layout');
  7.         $view = $layout->getView();
  8.  
  9.         $view->inlineScript()
  10.             ->appendScript('var _gaq=[["_setAccount","UA-'.$analyticsCode.'"],["_trackPageview"]]; (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1; g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js"; s.parentNode.insertBefore(g,s)}(document,"script"));');
  11.     }
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top