Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Smarty plugin not working in $template?
  • Hey,

    I have a custom function for Smarty that I register in my SmartyViewModel::before method.

    Before I updated to 1.6.1 (from 1.5) this function was available in my $template and anything further down the chain, but now it's only available in $_view.

    Since it was working before; should I be doing something different or wont this be possible going forward?

    Many thanks,
    /Andy
  • There were no changes to either the View or the Viewmodel. The parser package was changed to switch from a custom installed Smarty to using the Composer package, perhaps that has caused it?


Howdy, Stranger!

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

In this Discussion