Placing the favicon.ico file in my webroot displays the favicon in Google
chrome, but in firefox and safari it still doesn't display. That's just the
default behavior I guess. Chrome looks for a favicon in website root,
firefox & safari don't.

What could be going wrong?

Thanks and Regards
ShiVik



shivik wrote:
> 
> Hello all
> 
> I cannot get to display the favicon on my zend application. I put the
> favicon in my webroot/images folder and used the headLink() helper to
> define the favicon in my Bootstrap file. But I just cannot get it to
> display.
> 
> here is what I did...
>  
>       protected function _initView()
>       {
>             // Initialize view
>             $view = new Zend_View();
>  
>             $view->headLink()->headLink( array( 'rel' => 'favicon',
>                     'href' => $view->baseUrl( 'images/favicon.ico' ),
>                     'type' => 'image/x-icon' ));
> 
>             // Add it to the ViewRenderer
>             $viewRenderer =
>                
> Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
>             $viewRenderer->setView($view);
>  
>             // Return it, so that it can be stored by the bootstrap
>             return $view;
>         }
> 
> 
> Thanks and Regards
> ShiVik
> 

-- 
View this message in context: 
http://n4.nabble.com/Problem-in-displaying-favicon-in-Zend-tp932853p932858.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to