Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Email not catching css Asset
  • I have a mail template like this:

    <!DOCTYPE html>
    <html>
      <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <!-- Bootstrap -->
        <?php echo \Asset::css('bootstrap.css'); ?>
      </head>
      <body>
        <div class="container">
          <div class="header">

    When launching the task that manage emails, I have the following error:

    Error - Could not find asset: bootstrap.css in COREPATH/classes/asset/instance.php on line 256

    This is pretty strange as bootstrap.css is in public/assets/css and is fully used by other part of this application such as views and themes.

    I'm using FuelPHP v 1.7.1
  • You can not use anything like that in an email, the only thing you can use is inline styles.
    No css etc;
  • Asset doesn't really have CLI (tasks) support until 1.8/develop (i.e. a few days ago).

Howdy, Stranger!

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

In this Discussion