Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
How to integrate pictures as link rel correctly?
  • Hello,

    I try to modfy one design into a Fuel Theme.

    There I have the following:
            <!-- Your Favoriate Icons -->
            <link rel="shortcut icon" href="ico/favicon.ico">
            <link rel="apple-touch-icon-precomposed" sizes="144x144" href="ico/apple-touch-icon-144-precomposed.png">

    I have changes this to:
            <!-- Your Favoriate Icons -->
            <?php echo \Theme::instance()->asset->css(array('../ico/favicon.ico'), array('rel' => 'shortcut icon'), NULL, false); ?>
            <?php echo \Theme::instance()->asset->css(array('../ico/apple-touch-icon-144-precomposed.png'), array('rel' => 'apple-touch-icon-precomposed', 'sizes' => '144x144'), NULL, false); ?>       

    The favicon is working with that correctly, but the PNG is trowing an error:
    Fuel\Core\FuelException [ Error ]: Could not find asset: ../ico/apple-touch-icon-144-precomposed.png

    Both Icons are in the same directory:
    \public\themes\peach\ico

    What is the correct way to integrate something like that?

    Thanks
    Kay
  • I thought for a second that the ../ would have caused it, but your favicon link works fine, so that can't be it.

    If you get that error, then file_exists() failed. You're sure it's there, it's spelled correctly, and no case issues?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion