Posts

Showing posts from 2012

Adding Google Analytics Account to Chrome Web Store Application

For an useful explanation of how to add Google Analytics Account to your Chrome Web Store application follow these instructions . Note that is a good idea to have a separate account property for your main web site and the chrome hosted application detail page.

Vasil Levski

Image
Yesterday, Feb 18th, was the 139th anniversary from the death of Vasil Levski - the brightest figure in the Bulgarian history. May his name and deeds are remembered forever! More about him from Wikipedia

Insert processing istruction to Zend View Helper Navigation Sitemap domobject

What if you want to associate a xslt stylesheet to the sitemap generated by Zend_View_Helper_Navigation_Sitemap. I did it by adding a xml-stylesheet processing instruction to the view helper dom object. Here is the code: class SitemapController extends Zend_Controller_Action { public function indexAction () { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender("true"); $pages = array(); // generate the pages array somehow $someservice = new My_Serivce_PageGenerator(); $pages = $someservice->fetchAllMyWebsitePages(); // generate sitemap xml $xml = $this->_generateSitemapXml($pages); $response = $this->getResponse(); $response->setHeader('Cache-Control', 'public', true); $response->setHeader('Content-Type', 'text/xml', true); $response->appendBody($xml); } priva