Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-28-2008, 08:04 AM
Junior Member
 
Join Date: Feb 2008
Posts: 6
Default Invalid controller specified (favicon.ico)

Have anyone know how to solve this problem. I would like to have /favicon.ico on my Zend Framework application... Thanks in advance!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 03:30 PM
xentek's Avatar
Senior Member
 
Join Date: Feb 2008
Posts: 112
Default

It depends on how you set up your Framework (since you can override the default directory layout)... but you should just be able to put in the same directory that you store your images.... i.e. the one that ZF thinks is your 'webroot' folder.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 04:07 PM
Junior Member
 
Join Date: Feb 2008
Posts: 6
Default

Well, I posted the question and I will reply:

<Files "favicon.ico">
RewriteRule ^/([^/]+/)+favicon\.ico$ /public/images/favicon.ico [L]
</Files>

This is the answer! Thanks to all for support
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 05:37 PM
xentek's Avatar
Senior Member
 
Join Date: Feb 2008
Posts: 112
Default

That's one way to do it, but you really don't need to involve mod_rewrite if you don't want to.... you just need to find out which part of your app structure is consider the root of the web folder.... Our atypical set up allowed me to just put the favicon.ico in the root of my project folder, next to my index.php file (the one that includes my bootstrap and sets up my frontController).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-21-2008, 07:00 AM
Junior Member
 
Join Date: Jul 2008
Location: Ahmedabad
Posts: 9
Default

I have tried with akizdetz solution. But still I'm not getting favicon in my IE6. Could you please let me know how I get favicon in IE? It is working properly in FF.

Thanks in advance.
__________________
Amit Shah
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 10-21-2008, 03:48 PM
wrs's Avatar
wrs wrs is offline
Member
 
Join Date: Sep 2008
Posts: 42
Default

PHP Code:
<?= $this->headLink(Array('rel' => 'icon''href' => '/assets/favicon.ico''type' => 'image/x-icon'); ?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-27-2008, 09:34 AM
Junior Member
 
Join Date: Nov 2008
Posts: 1
Default missing a )

Quote:
Originally Posted by wrs View Post
PHP Code:
<?= $this->headLink(Array('rel' => 'icon''href' => '/assets/favicon.ico''type' => 'image/x-icon'); ?>
your code is missing an ending parenthesis.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:37 PM.