Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Problem fuel_version on Parser/Twig
mhanari
September 2013
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;
}
}
Harro
September 2013
Accepted Answer
fixed:
https://github.com/fuel/parser/commit/76d4cdd929fa05b1c59ae9aedb2b4347377899a6
There were two more class references missing the backslash. Thanks for reporting it.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
September 2013