Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Problem fuel_version on Parser/Twig
  • Hi,

    I've tried following code in Twig template, but error occurred.

    {{ fuel_version() }}

    ErrorException [Error]:Class 'Parser\Fuel' not found.

    I've patched following code.

    --- parser/classes/twig/fuel/extension.php.orig 2013-06-10 03:32:23.000000000 +0900
    +++ parser/classes/twig/fuel/extension.php 2013-09-10 10:09:26.000019000 +0900
    @@ -105,6 +105,6 @@

      public function fuel_version()
      {
    - return Fuel::VERSION;
    + return \Fuel::VERSION;
      }
     }
     
  • HarroHarro
    Accepted Answer
    fixed: https://github.com/fuel/parser/commit/76d4cdd929fa05b1c59ae9aedb2b4347377899a6

    There were two more class references missing the backslash. Thanks for reporting it.

Howdy, Stranger!

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

In this Discussion