Page 1 of 1

Self Registration module template variables

Posted: Tue Sep 18, 2018 6:44 am
by Simon66
I created a tutorial a few years ago about building Self Reg templates: viewtopic.php?f=4&t=67650

I am now building a new site that needs a Self Reg registration template.

I used to use {$username->control} and {$password->control} etc. to build the templates, but they no longer work.

I have edited the default template using the {foreach from=$controls item=control} loop, but it would be much less code if I could use the variable directly.

Does anyone know if this is still possible?
Are the variables written differently now?

Cheers
Simon66

Re: Self Registration module template variables

Posted: Tue Sep 18, 2018 1:23 pm
by calguy1000
The $controls variable in the Selfregistration registration template are an associative array of objects.

Look at the factory template that comes with the module.