What's the easiest method to assign value from PHP to smarty?

2»

Comments

  • Admin

    Looks good. Make sure your themehooks file is loaded. Try adding something like echo 'test'; die; into the base_render_before. That setup method is not needed, by the way

  • Thank you R_J, that was a good idea. Indeed the echo didn't fire as well - in the end I realized that using the "preview mode" for checking and building my theme wasn't the right thing to do. After properly activating the theme, everything worked - including the "Hello" variable in the {debug_vars}.

    Again thanks for the help 😎

Sign In or Register to comment.