nw that I have my custom product table extension working, I need to present some UI to manage the data (admin products.manage) and view (products.view) it
I created a controller in my addon, and the controller gets fired, I can access the database, and properly get the data (get), and I’m sure on post I can put it back.
now to show the data on the screen.
I started down the html block path, but you can’t access template variables in these blocks, too late in the process cycle…
so, I created a static template, and this template is fired as expected (on view at the moment)…
but, how do I address the variable in the template… all the samples don’t seem to match whatever is required in 4.2.4
my controller does
Registry::get(‘view’)->assign(‘var_name’,var_value);
my template does
{$var_name}
some content2
on the product entry view on the customer site, I see
$var_name
some content2
so I am missing a small piece of info.