Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Installation & Setup
Mustache parser extension not recognized
Just to report a new problem with the Mustache parser in
in fuelphp 1.7, PHP5 it was working fine
I want to use the ".html" extension, my view file is "views/auth/myview.html".
When I do:
View::forge('auth/myview.mustache', $data, false)
=> I am getting the error:
Fuel\Core\FuelException [ Error ]:
The requested view could not be found: auth/myview.mustache.php
COREPATH/classes/view.php @ line 492
My fuel/app/config/config.php is as followed:
'always_load' => array(
'packages' => array(
In my composer.json:
In my fuel/app/config/parser.php, I indicate the html extension:
'extensions' => array(
'mustache' => array('class' => 'View_Mustache', 'extension' => 'html'),
Is it a bug or did I forgot something?
I'll have a look first thing tomorrow.
There is something seriously wrong in the parser. I'm still busy with it.
Should be fixed again. Thanks for reporting it, and sorry for the inconvenience.
Aie Aie Aie it's getting worst.
I just did a "php composer.phar update",
and now the full application is not working anymore
I got this Error:
Error - The requested view could not be found: welcome/index. in COREPATH/classes/view.php on line 492
It seems coming from the followed line in fuel/packages/parser/classes/view.php:
"isset($extension) and $view->extension = $extension;"
If I replace it like it was before, it works: "
It doesn't seem to add the "php" extension for default views anymore for some reason.
Not sure why I didn't get that error.
I really don't have my day today:
There are days like this ;-P
Its working great now
Thank you very much for your help!!
You're welcome. Please keep the bugreports commin'
Add a Comment
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
↳ Job Board
↳ Installation & Setup
↳ Tips and Tutorials
↳ Code share
In this Discussion